CPDFShapeUI.xaml 3.2 KB

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