StraightnessProperty.xaml 8.0 KB

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