添加项目文件。
This commit is contained in:
98
MetroGauges/Controls/DesignControl.xaml
Normal file
98
MetroGauges/Controls/DesignControl.xaml
Normal file
@@ -0,0 +1,98 @@
|
||||
<mapctl:MapBase xmlns:my="clr-namespace:MetroGauges.Controls" x:Class="MetroGauges.Controls.DesignControl"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mapctl="clr-namespace:MetroGauges.Controls"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="300" d:DesignWidth="800" >
|
||||
<Grid x:Name="LayoutRoot" Background="Black" >
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition x:Name="rightColumn" Width="0" />
|
||||
<ColumnDefinition x:Name="showColumn" Width="0" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="276*" />
|
||||
<RowDefinition Height="0" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!--设计模板-->
|
||||
<Grid x:Name="Root" Background="Transparent" Margin="1" >
|
||||
<TextBox x:Name="RootKeyHook" Width="0" Height="0" />
|
||||
<Grid x:Name="ChildContainer" >
|
||||
<!--<ScrollViewer Margin="2" HorizontalScrollBarVisibility="Auto" Name="docViewer" VerticalScrollBarVisibility="Auto">-->
|
||||
<Canvas x:Name="canvasDesign" Background="Black" >
|
||||
<Canvas.RenderTransform>
|
||||
<TransformGroup>
|
||||
<!--<TranslateTransform X="200" />-->
|
||||
<!--<ScaleTransform ScaleY="-1" />-->
|
||||
<!--<ScaleTransform ScaleX="0.4" ScaleY="0.4"></ScaleTransform>-->
|
||||
<TranslateTransform Y="{Binding ActualHeight,ElementName=canvasDesign}" />
|
||||
</TransformGroup>
|
||||
</Canvas.RenderTransform>
|
||||
|
||||
|
||||
<Path Canvas.Left="0" Canvas.Top="0" x:Name="x_axis" Data="M0,0 L670,0" Stretch="Fill" Stroke="White" StrokeEndLineCap="Square" StrokeStartLineCap="Square" StrokeThickness="2" />
|
||||
|
||||
<StackPanel >
|
||||
<StackPanel.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform ScaleY="-1" />
|
||||
</TransformGroup>
|
||||
</StackPanel.RenderTransform>
|
||||
<Path x:Name="y_axis" Canvas.Left="0" Canvas.Top="0" Data="M0,10 L0,670" Stretch="Fill" Stroke="White" StrokeEndLineCap="Square" StrokeStartLineCap="Square" StrokeThickness="2" />
|
||||
</StackPanel>
|
||||
|
||||
<Path Canvas.Left="800" Canvas.Top="-3" x:Name="x_axisArrow" HorizontalAlignment="Right" Data="M0,0 L0,8 L10,4 z" Fill="White" Stretch="Fill" />
|
||||
|
||||
<StackPanel Canvas.Left="-3" Canvas.Top="-800" >
|
||||
<StackPanel.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform ScaleY="-1" />
|
||||
</TransformGroup>
|
||||
</StackPanel.RenderTransform>
|
||||
<Path x:Name="y_axisArrow" Data="M0,10 L8,10 L4,0 z" Fill="White" Stretch="Fill" />
|
||||
</StackPanel>
|
||||
|
||||
|
||||
|
||||
</Canvas>
|
||||
<!--</ScrollViewer>-->
|
||||
</Grid>
|
||||
<!--<Border BorderThickness="2" BorderBrush="#ffd2d2d2" CornerRadius="5" Margin="0" />-->
|
||||
|
||||
</Grid>
|
||||
<TextBox x:Name="txtXY" Grid.Row="1" Text="sdfsdfsdf"></TextBox>
|
||||
|
||||
|
||||
<GridSplitter x:Name="gridSplitter" Width="2" ></GridSplitter>
|
||||
<!--属性信息面版-->
|
||||
<Border Background="White" BorderThickness="1" BorderBrush="#ffd2d2d2" CornerRadius="2" Grid.Column="1" Margin="2">
|
||||
<Grid x:Name="gridEditPanel">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="30" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Rectangle Fill="#FFFAFAFA" RadiusX="10" RadiusY="10" />
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="20" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock x:Name="labTitle" Text="属性面板" FontSize="14" VerticalAlignment="Center" Margin="20,0,0,0" Foreground="#FF9A9A9A" />
|
||||
<Image VerticalAlignment="Top" Cursor="Hand" Width="16" Height="16" ToolTip="隐藏属性面板" Source="/MetroGauges;component/Resources/Icon/hide.png" Grid.Column="2" PreviewMouseLeftButtonDown="TextBlock_PreviewMouseLeftButtonDown"></Image>
|
||||
</Grid>
|
||||
|
||||
<Border VerticalAlignment="Bottom" BorderBrush="#ffd2d2d2" BorderThickness="0.5" />
|
||||
<Grid x:Name="RightContain" Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5">
|
||||
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<Image VerticalAlignment="Top" Cursor="Hand" Margin="0,5,0,0" Width="16" Height="16" ToolTip="显示属性面版" Source="/MetroGauges;component/Resources/Icon/property.png" Grid.Column="2" PreviewMouseLeftButtonDown="showRightPanel_PreviewMouseLeftButtonDown"></Image>
|
||||
|
||||
|
||||
</Grid>
|
||||
</mapctl:MapBase>
|
||||
Reference in New Issue
Block a user