StraightnessProperty.xaml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <UserControl x:Class="Compdfkit_Tools.Measure.Property.StraightnessProperty"
  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.Property"
  7. xmlns:cpdfcommon="clr-namespace:Compdfkit_Tools.Common"
  8. xmlns:cpdftools="clr-namespace:Compdfkit_Tools.PDFControl"
  9. mc:Ignorable="d"
  10. Loaded="UserControl_Loaded"
  11. Unloaded="UserControl_Unloaded"
  12. >
  13. <UserControl.Resources>
  14. <ResourceDictionary>
  15. <ResourceDictionary.MergedDictionaries>
  16. <ResourceDictionary Source="../../Asset/Styles/ComboBoxStyle.xaml"></ResourceDictionary>
  17. </ResourceDictionary.MergedDictionaries>
  18. </ResourceDictionary>
  19. </UserControl.Resources>
  20. <ScrollViewer VerticalScrollBarVisibility="Auto">
  21. <Grid Background="#FAFCFF">
  22. <StackPanel Orientation="Vertical">
  23. <Border BorderThickness="1" BorderBrush="#1A000000">
  24. <Grid Height="40" Background="White" >
  25. <TextBlock x:Name="TitleTextBlock" Text="Appearance" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" FontWeight="Bold" FontFamily="Segoe UI"></TextBlock>
  26. </Grid>
  27. </Border>
  28. <StackPanel Height="68" Margin="5">
  29. <TextBlock Text="Line Color" FontWeight="SemiBold" FontSize="14" LineHeight="16" FontFamily="Segoe UI"/>
  30. <cpdfcommon:ColorPickerControl Margin="0,8,0,0" x:Name="BorderColorPickerControl" Brush="Red" TransparentBtnProperty ="Collapsed"
  31. ColorChanged="BorderColorPickerControl_ColorChanged"/>
  32. </StackPanel>
  33. <StackPanel Height="68" Margin="5">
  34. <TextBlock Text="Opacity" FontWeight="SemiBold" FontSize="14" LineHeight="16" FontFamily="Segoe UI"/>
  35. <cpdfcommon:CPDFOpacityControl Margin="0,8,0,0" x:Name="CPDFOpacityControl" OpacityChanged="CPDFOpacityControl_OpacityChanged">
  36. </cpdfcommon:CPDFOpacityControl>
  37. </StackPanel>
  38. <StackPanel Height="68" Margin="5">
  39. <TextBlock Text="Line Width" FontWeight="SemiBold" FontSize="14" LineHeight="16" FontFamily="Segoe UI"></TextBlock>
  40. <cpdfcommon:CPDFThicknessControl Margin="0,8,0,0" x:Name="CPDFThicknessControl"
  41. ThicknessChanged="CPDFThicknessControl_ThicknessChanged">
  42. </cpdfcommon:CPDFThicknessControl>
  43. </StackPanel>
  44. <StackPanel x:Name="LineStyleStackPanel" Height="90" Margin="5">
  45. <TextBlock Text="Line and Border Style" FontWeight="SemiBold" FontSize="14" LineHeight="16" FontFamily="Segoe UI"/>
  46. <cpdfcommon:CPDFLineStyleControl Margin="0,8,0,0" x:Name="CPDFLineStyleControl"
  47. LineStyleChanged="CPDFLineStyleControl_LineStyleChanged">
  48. </cpdfcommon:CPDFLineStyleControl>
  49. </StackPanel>
  50. <StackPanel x:Name="ArrowStackPanel" Visibility="Visible" Height="75" Margin="5">
  51. <TextBlock Text="Start and End" Margin="0,0,0,10" FontWeight="SemiBold" FontSize="14" LineHeight="16" FontFamily="Segoe UI"/>
  52. <cpdfcommon:CPDFArrowControl x:Name="CPDFArrowControl" ArrowChanged="CPDFArrowControl_ArrowChanged">
  53. </cpdfcommon:CPDFArrowControl>
  54. </StackPanel>
  55. <StackPanel x:Name="FontColorStackPanel" Height="75" Margin="5">
  56. <TextBlock Text="Font Color" FontWeight="SemiBold" FontSize="14" LineHeight="16" FontFamily="Segoe UI"/>
  57. <cpdfcommon:ColorPickerControl Margin="0,8,0,0" x:Name="FontColorPickerControl" Brush="Transparent" TransparentBtnProperty ="Collapsed"
  58. ColorChanged="FontColorPickerControl_ColorChanged"></cpdfcommon:ColorPickerControl>
  59. </StackPanel>
  60. <StackPanel Margin="5">
  61. <TextBlock Margin="0,20,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Text="Text" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold" />
  62. <ComboBox x:Name="FontCombox" Margin="0,8,0,0" Style="{StaticResource ComboBoxStyle1}" SelectedIndex="0" SelectionChanged="FontCombox_SelectionChanged">
  63. <ComboBoxItem Content="Arial"/>
  64. <ComboBoxItem Content="Courier New"/>
  65. <ComboBoxItem Content="Times New Roman"/>
  66. </ComboBox>
  67. <StackPanel Orientation="Horizontal" >
  68. <ComboBox x:Name="FontStyleCombox" Margin="0,8,0,0" Width="148" Style="{StaticResource ComboBoxStyle1}" SelectedIndex="0" SelectionChanged="FontStyleCombox_SelectionChanged">
  69. <ComboBoxItem Content="Regular"/>
  70. <ComboBoxItem Content="Bold"/>
  71. <ComboBoxItem Content="Italic"/>
  72. <ComboBoxItem Content="Bold Italic"/>
  73. </ComboBox>
  74. <Grid Grid.Row="1" Grid.Column="1" Margin="8,8,0,0">
  75. <ComboBox Name="FontSizeComboBox" Width="72" Height="28" BorderThickness="1" MaxDropDownHeight="200" Foreground="#43474D" FontSize="14"
  76. SelectionChanged="FontSizeComboBox_SelectionChanged" Style="{StaticResource ComboBoxStyle1}"/>
  77. </Grid>
  78. </StackPanel>
  79. </StackPanel>
  80. <StackPanel Height="160" Margin="5">
  81. <TextBlock Text="Note"></TextBlock>
  82. <TextBox Height="100" x:Name="NoteTextBox" TextChanged="NoteTextBox_TextChanged" TextWrapping="Wrap" AcceptsReturn="True"></TextBox>
  83. </StackPanel>
  84. </StackPanel>
  85. </Grid>
  86. </ScrollViewer>
  87. </UserControl>