MeasureSettingDialog.xaml 5.7 KB

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