|
@@ -4,8 +4,14 @@
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:Compdfkit_Tools.Measure"
|
|
xmlns:local="clr-namespace:Compdfkit_Tools.Measure"
|
|
|
|
+ xmlns:common="clr-namespace:Compdfkit_Tools.Common"
|
|
mc:Ignorable="d"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="350" d:DesignWidth="150">
|
|
d:DesignHeight="350" d:DesignWidth="150">
|
|
|
|
+ <UserControl.Resources>
|
|
|
|
+ <ResourceDictionary>
|
|
|
|
+ <common:PropertyPanelResourceConverter x:Key="PropertyPanelResourceConverter" />
|
|
|
|
+ </ResourceDictionary>
|
|
|
|
+ </UserControl.Resources>
|
|
<Border BorderBrush="LightGray" CornerRadius="4" Background="White">
|
|
<Border BorderBrush="LightGray" CornerRadius="4" Background="White">
|
|
<Border.Effect>
|
|
<Border.Effect>
|
|
<DropShadowEffect BlurRadius="20" ShadowDepth="0" Color="Black" Opacity="0.4"/>
|
|
<DropShadowEffect BlurRadius="20" ShadowDepth="0" Color="Black" Opacity="0.4"/>
|
|
@@ -47,22 +53,22 @@
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
- <TextBlock FontSize="14">Scale:</TextBlock>
|
|
|
|
|
|
+ <TextBlock FontSize="14" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter}, ConverterParameter=Board_Scale}"></TextBlock>
|
|
<TextBlock Name="ScaleText" Grid.Column="1" FontSize="14"></TextBlock>
|
|
<TextBlock Name="ScaleText" Grid.Column="1" FontSize="14"></TextBlock>
|
|
|
|
|
|
- <TextBlock Grid.Row="1" Margin="0,10,0,0" FontSize="14">Length:</TextBlock>
|
|
|
|
|
|
+ <TextBlock Grid.Row="1" Margin="0,10,0,0" FontSize="14" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter}, ConverterParameter=Board_Length}"></TextBlock>
|
|
<TextBlock Name="DistanceText" Grid.Row="1" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
<TextBlock Name="DistanceText" Grid.Row="1" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
|
|
|
|
- <TextBlock Grid.Row="2" Margin="0,10,0,0" FontSize="14">Precision:</TextBlock>
|
|
|
|
|
|
+ <TextBlock Grid.Row="2" Margin="0,10,0,0" FontSize="14" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter}, ConverterParameter=Board_Precision}"></TextBlock>
|
|
<TextBlock Name="PrecisionText" Grid.Row="2" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
<TextBlock Name="PrecisionText" Grid.Row="2" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
|
|
|
|
- <TextBlock Grid.Row="3" Margin="0,10,0,0" FontSize="14">Angle:</TextBlock>
|
|
|
|
|
|
+ <TextBlock Grid.Row="3" Margin="0,10,0,0" FontSize="14" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter}, ConverterParameter=Board_Angle}"></TextBlock>
|
|
<TextBlock Name="AngleText" Grid.Row="3" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
<TextBlock Name="AngleText" Grid.Row="3" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
|
|
|
|
- <TextBlock Grid.Row="4" Margin="0,10,0,0" FontSize="14">X:</TextBlock>
|
|
|
|
|
|
+ <TextBlock Grid.Row="4" Margin="0,10,0,0" FontSize="14" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter}, ConverterParameter=Board_X}"></TextBlock>
|
|
<TextBlock Name="XText" Grid.Row="4" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
<TextBlock Name="XText" Grid.Row="4" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
|
|
|
|
- <TextBlock Grid.Row="5" Margin="0,10,0,0" FontSize="14">Y:</TextBlock>
|
|
|
|
|
|
+ <TextBlock Grid.Row="5" Margin="0,10,0,0" FontSize="14" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter}, ConverterParameter=Board_Y}"></TextBlock>
|
|
<TextBlock Name="YText" Grid.Row="5" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
<TextBlock Name="YText" Grid.Row="5" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
|
|
|
|
</Grid>
|
|
</Grid>
|
|
@@ -78,16 +84,16 @@
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
- <TextBlock FontSize="14">Scale:</TextBlock>
|
|
|
|
|
|
+ <TextBlock FontSize="14" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter}, ConverterParameter=Board_Scale}"></TextBlock>
|
|
<TextBlock Name="ScalePolyLineText" Grid.Column="1" FontSize="14"></TextBlock>
|
|
<TextBlock Name="ScalePolyLineText" Grid.Column="1" FontSize="14"></TextBlock>
|
|
|
|
|
|
- <TextBlock Grid.Row="1" Margin="0,10,0,0" FontSize="14">Length:</TextBlock>
|
|
|
|
|
|
+ <TextBlock Grid.Row="1" Margin="0,10,0,0" FontSize="14" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter}, ConverterParameter=Board_Length}"></TextBlock>
|
|
<TextBlock Name="DistancePolyLineText" Grid.Row="1" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
<TextBlock Name="DistancePolyLineText" Grid.Row="1" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
|
|
|
|
- <TextBlock Grid.Row="2" Margin="0,10,0,0" FontSize="14">Precision:</TextBlock>
|
|
|
|
|
|
+ <TextBlock Grid.Row="2" Margin="0,10,0,0" FontSize="14" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter}, ConverterParameter=Board_Precision}"></TextBlock>
|
|
<TextBlock Name="PrecisionPolyLineText" Grid.Row="2" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
<TextBlock Name="PrecisionPolyLineText" Grid.Row="2" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
|
|
|
|
- <TextBlock Grid.Row="3" Margin="0,10,0,0" FontSize="14">Angle:</TextBlock>
|
|
|
|
|
|
+ <TextBlock Grid.Row="3" Margin="0,10,0,0" FontSize="14" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter}, ConverterParameter=Board_Angle}"></TextBlock>
|
|
<TextBlock Name="AnglePolyLineText" Grid.Row="3" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
<TextBlock Name="AnglePolyLineText" Grid.Row="3" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
|
|
|
|
</Grid>
|
|
</Grid>
|
|
@@ -103,23 +109,23 @@
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
</Grid.RowDefinitions>
|
|
- <TextBlock FontSize="14">Scale:</TextBlock>
|
|
|
|
|
|
+ <TextBlock FontSize="14" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter}, ConverterParameter=Board_Scale}"></TextBlock>
|
|
<TextBlock Name="ScalePolygonText" Grid.Column="1" FontSize="14"></TextBlock>
|
|
<TextBlock Name="ScalePolygonText" Grid.Column="1" FontSize="14"></TextBlock>
|
|
|
|
|
|
- <TextBlock Grid.Row="1" Margin="0,10,0,0" FontSize="14">Area:</TextBlock>
|
|
|
|
|
|
+ <TextBlock Grid.Row="1" Margin="0,10,0,0" FontSize="14" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter}, ConverterParameter=Board_Area}"></TextBlock>
|
|
<TextBlock Name="RoundPolygonText" Grid.Row="1" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
<TextBlock Name="RoundPolygonText" Grid.Row="1" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
|
|
|
|
- <TextBlock Grid.Row="2" Margin="0,10,0,0" FontSize="14">Precision:</TextBlock>
|
|
|
|
|
|
+ <TextBlock Grid.Row="2" Margin="0,10,0,0" FontSize="14" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter}, ConverterParameter=Board_Precision}"></TextBlock>
|
|
<TextBlock Name="PrecisionPolygonText" Grid.Row="2" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
<TextBlock Name="PrecisionPolygonText" Grid.Row="2" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
|
|
|
|
- <TextBlock Grid.Row="3" Margin="0,10,0,0" FontSize="14">Angle:</TextBlock>
|
|
|
|
|
|
+ <TextBlock Grid.Row="3" Margin="0,10,0,0" FontSize="14" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter}, ConverterParameter=Board_Angle}"></TextBlock>
|
|
<TextBlock Name="AnglePolygonText" Grid.Row="3" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
<TextBlock Name="AnglePolygonText" Grid.Row="3" Grid.Column="1" Margin="0,10,0,0" FontSize="14"></TextBlock>
|
|
|
|
|
|
</Grid>
|
|
</Grid>
|
|
|
|
|
|
<TextBlock Grid.Row="2" Grid.ColumnSpan="2" HorizontalAlignment="Right"
|
|
<TextBlock Grid.Row="2" Grid.ColumnSpan="2" HorizontalAlignment="Right"
|
|
Margin="0,10,40,20" FontSize="14" Foreground="Blue" Cursor="Hand"
|
|
Margin="0,10,40,20" FontSize="14" Foreground="Blue" Cursor="Hand"
|
|
- MouseLeftButtonDown="TextBlock_MouseLeftButtonDown">Settings</TextBlock>
|
|
|
|
|
|
+ MouseLeftButtonDown="TextBlock_MouseLeftButtonDown" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter}, ConverterParameter=Board_Settings}"></TextBlock>
|
|
|
|
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
</Border>
|