MultilineProperty.xaml 5.2 KB

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