MeasureSettingPanel.xaml 5.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <UserControl x:Class="Compdfkit_Tools.Measure.MeasureSettingPanel"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:Compdfkit_Tools.Measure"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800">
  9. <Border x:Name="SettingPanel" BorderBrush="LightGray" CornerRadius="4" Background="White" Width="530" Height="350">
  10. <Border.Effect>
  11. <DropShadowEffect BlurRadius="20" ShadowDepth="0" Color="Black" Opacity="0.4"/>
  12. </Border.Effect>
  13. <Grid Margin="20">
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="auto"></RowDefinition>
  16. <RowDefinition Height="auto"></RowDefinition>
  17. <RowDefinition Height="auto"></RowDefinition>
  18. <RowDefinition Height="auto"></RowDefinition>
  19. <RowDefinition Height="auto"></RowDefinition>
  20. </Grid.RowDefinitions>
  21. <TextBlock FontSize="16">Settings</TextBlock>
  22. <Grid Grid.Row="1" Margin="0,20,0,0">
  23. <Grid.RowDefinitions>
  24. <RowDefinition Height="auto"></RowDefinition>
  25. <RowDefinition Height="auto"></RowDefinition>
  26. <RowDefinition Height="auto"></RowDefinition>
  27. <RowDefinition Height="auto"></RowDefinition>
  28. <RowDefinition Height="auto"></RowDefinition>
  29. </Grid.RowDefinitions>
  30. <TextBlock FontSize="14" FontWeight="Bold">Custom Scale</TextBlock>
  31. <TextBlock FontSize="14" Grid.Row="1" Margin="0,10,0,10">Drawing dimensions: Actual size</TextBlock>
  32. <StackPanel Grid.Row="2" Orientation="Horizontal">
  33. <TextBox Name="RulerBaseText" Width="110" VerticalContentAlignment="Center" FontSize="14"
  34. InputMethod.IsInputMethodEnabled="False"
  35. PreviewKeyDown="TextBox_PreviewKeyDown"
  36. CommandManager.PreviewCanExecute="TextBox_CanExecute" MaxLength="6">
  37. </TextBox>
  38. <ComboBox Name="RulerBaseUnitCombo" Width="110" FontSize="14" Margin="10,0,0,0" VerticalContentAlignment="Center">
  39. <ComboBoxItem>in</ComboBoxItem>
  40. <ComboBoxItem IsSelected="True">cm</ComboBoxItem>
  41. <ComboBoxItem>mm</ComboBoxItem>
  42. </ComboBox>
  43. <TextBlock FontSize="14" Margin="10,0,10,0">=</TextBlock>
  44. <TextBox Name="RulerTranslateText" Width="110" FontSize="14" VerticalContentAlignment="Center"
  45. InputMethod.IsInputMethodEnabled="False"
  46. PreviewKeyDown="TextBox_PreviewKeyDown"
  47. CommandManager.PreviewCanExecute="TextBox_CanExecute" MaxLength="6">
  48. </TextBox>
  49. <ComboBox Name="RulerTranslateCombo" Width="110" FontSize="14" Margin="10,0,0,0" VerticalContentAlignment="Center">
  50. <ComboBoxItem>pt</ComboBoxItem>
  51. <ComboBoxItem IsSelected="True">cm</ComboBoxItem>
  52. <ComboBoxItem>in</ComboBoxItem>
  53. <ComboBoxItem>mm</ComboBoxItem>
  54. <ComboBoxItem>m</ComboBoxItem>
  55. <ComboBoxItem>km</ComboBoxItem>
  56. <ComboBoxItem>ft</ComboBoxItem>
  57. <ComboBoxItem>yd</ComboBoxItem>
  58. <ComboBoxItem>mi</ComboBoxItem>
  59. </ComboBox>
  60. </StackPanel>
  61. <TextBlock Grid.Row="3" Margin="0,10,0,10" FontSize="14">
  62. Precision
  63. </TextBlock>
  64. <ComboBox Name="PrecisionBox" Grid.Row="4" Width="110" HorizontalAlignment="Left">
  65. <ComboBoxItem>1</ComboBoxItem>
  66. <ComboBoxItem >0.1</ComboBoxItem>
  67. <ComboBoxItem IsSelected="True">0.01</ComboBoxItem>
  68. <ComboBoxItem>0.001</ComboBoxItem>
  69. <ComboBoxItem>0.0001</ComboBoxItem>
  70. </ComboBox>
  71. </Grid>
  72. <Separator Grid.Row="2" Margin="0,10,0,10"></Separator>
  73. <Grid Grid.Row="3" x:Name="AreaAndLength" Visibility="Collapsed">
  74. <Grid.RowDefinitions>
  75. <RowDefinition Height="auto"></RowDefinition>
  76. <RowDefinition Height="auto"></RowDefinition>
  77. <RowDefinition Height="auto"></RowDefinition>
  78. </Grid.RowDefinitions>
  79. <TextBlock FontSize="14" >Show Caption</TextBlock>
  80. <CheckBox x:Name="LengthCheckBox" IsChecked="True" Grid.Row="1" Margin="0,10,0,10" FontSize="14">Length</CheckBox>
  81. <CheckBox x:Name="AreaCheckBox" IsChecked="True" Grid.Row="2" FontSize="14">Area</CheckBox>
  82. </Grid>
  83. <StackPanel Grid.Row="4" HorizontalAlignment="Right" Orientation="Horizontal">
  84. <Button Width="110" Height="32" Click="ButtonCancel_Click">Cancel</Button>
  85. <Button Width="110" Height="32" Click="ButtonDone_Click" Margin="10,0,0,0">Done</Button>
  86. </StackPanel>
  87. </Grid>
  88. </Border>
  89. </UserControl>