CPDFShapeUI.xaml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <UserControl x:Class="Compdfkit_Tools.PDFControlUI.CPDFShapeUI"
  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:cpdftools="clr-namespace:Compdfkit_Tools.PDFControl"
  7. xmlns:local="clr-namespace:Compdfkit_Tools.PDFControlUI"
  8. xmlns:cpdfcommon="clr-namespace:Compdfkit_Tools.Common"
  9. mc:Ignorable="d"
  10. d:DesignHeight="800" d:DesignWidth="300">
  11. <ScrollViewer VerticalScrollBarVisibility="Auto">
  12. <Grid Background="#FAFCFF">
  13. <StackPanel Orientation="Vertical">
  14. <Border BorderThickness="1" BorderBrush="#1A000000">
  15. <Grid Height="40" Background="White" >
  16. <TextBlock x:Name="TitleTextBlock" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" FontFamily="Segoe UI"></TextBlock>
  17. </Grid>
  18. </Border>
  19. <StackPanel Orientation="Vertical" Height="130">
  20. <cpdftools:CPDFAnnotationPreviewerControl x:Name="CPDFAnnotationPreviewerControl" Height="100" Margin="16"></cpdftools:CPDFAnnotationPreviewerControl>
  21. </StackPanel>
  22. <StackPanel Height="75" Margin="5">
  23. <TextBlock Text="Line Color"></TextBlock>
  24. <cpdfcommon:ColorPickerControl x:Name="BorderColorPickerControl" Brush="Red" TransparentBtnProperty ="Collapsed"></cpdfcommon:ColorPickerControl>
  25. </StackPanel>
  26. <StackPanel x:Name="FillColorStackPanel" Height="75" Margin="5">
  27. <TextBlock Text="Fill Color"></TextBlock>
  28. <cpdfcommon:ColorPickerControl x:Name="FillColorPickerControl" Brush="Transparent"></cpdfcommon:ColorPickerControl>
  29. </StackPanel>
  30. <StackPanel Height="60" Margin="5">
  31. <TextBlock Text="Opacity"></TextBlock>
  32. <cpdfcommon:CPDFOpacityControl x:Name="CPDFOpacityControl"></cpdfcommon:CPDFOpacityControl>
  33. </StackPanel>
  34. <StackPanel Height="60" Margin="5">
  35. <TextBlock Text="Line Width"></TextBlock>
  36. <cpdfcommon:CPDFThicknessControl x:Name="CPDFThicknessControl"></cpdfcommon:CPDFThicknessControl>
  37. </StackPanel>
  38. <StackPanel x:Name="LineStyleStackPanel" Height="90" Margin="5">
  39. <TextBlock Text="Line and Border Style"></TextBlock>
  40. <cpdfcommon:CPDFLineStyleControl x:Name="CPDFLineStyleControl"></cpdfcommon:CPDFLineStyleControl>
  41. </StackPanel>
  42. <StackPanel x:Name="ArrowStackPanel" Visibility="Visible" Height="75" Margin="5">
  43. <TextBlock Text="Start and End"></TextBlock>
  44. <cpdfcommon:CPDFArrowControl x:Name="CPDFArrowControl"></cpdfcommon:CPDFArrowControl>
  45. </StackPanel>
  46. <StackPanel Height="160" Margin="5">
  47. <TextBlock Text="Note"></TextBlock>
  48. <TextBox Height="100" x:Name="NoteTextBox" TextChanged="NoteTextBox_TextChanged" TextWrapping="Wrap" AcceptsReturn="True"></TextBox>
  49. </StackPanel>
  50. </StackPanel>
  51. </Grid>
  52. </ScrollViewer>
  53. </UserControl>