CPDFShapeUI.xaml 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <UserControl x:Class="ComPDFKit.Controls.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.Controls.PDFControl"
  7. xmlns:local="clr-namespace:ComPDFKit.Controls.PDFControlUI"
  8. xmlns:cpdfcommon="clr-namespace:ComPDFKit.Controls.Common"
  9. mc:Ignorable="d"
  10. d:DesignHeight="800" d:DesignWidth="300">
  11. <UserControl.Resources>
  12. <ResourceDictionary>
  13. <cpdfcommon:PropertyPanelResourceConverter x:Key="PropertyPanelResourceConverter"></cpdfcommon:PropertyPanelResourceConverter>
  14. </ResourceDictionary>
  15. </UserControl.Resources>
  16. <ScrollViewer VerticalScrollBarVisibility="Auto">
  17. <Grid Background="#FAFCFF">
  18. <StackPanel Orientation="Vertical">
  19. <Border BorderThickness="1" BorderBrush="#1A000000">
  20. <Grid Height="40" Background="White" >
  21. <TextBlock x:Name="TitleTextBlock" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" FontFamily="Microsoft YaHei"></TextBlock>
  22. </Grid>
  23. </Border>
  24. <StackPanel Orientation="Vertical" Height="130">
  25. <cpdftools:CPDFAnnotationPreviewerControl x:Name="CPDFAnnotationPreviewerControl" Height="100" Margin="16"></cpdftools:CPDFAnnotationPreviewerControl>
  26. </StackPanel>
  27. <StackPanel Height="75" Margin="5">
  28. <TextBlock Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_StrokeColor}"></TextBlock>
  29. <cpdfcommon:ColorPickerControl x:Name="BorderColorPickerControl" Brush="Red" TransparentBtnProperty ="Collapsed"></cpdfcommon:ColorPickerControl>
  30. </StackPanel>
  31. <StackPanel x:Name="FillColorStackPanel" Height="75" Margin="5">
  32. <TextBlock Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_FillColor}"></TextBlock>
  33. <cpdfcommon:ColorPickerControl x:Name="FillColorPickerControl" Brush="Transparent"></cpdfcommon:ColorPickerControl>
  34. </StackPanel>
  35. <StackPanel Height="60" Margin="5">
  36. <TextBlock Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_Opacity}"></TextBlock>
  37. <cpdfcommon:CPDFOpacityControl x:Name="CPDFOpacityControl"></cpdfcommon:CPDFOpacityControl>
  38. </StackPanel>
  39. <StackPanel Height="60" Margin="5">
  40. <TextBlock Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_LineWidth}"></TextBlock>
  41. <cpdfcommon:CPDFThicknessControl x:Name="CPDFThicknessControl"></cpdfcommon:CPDFThicknessControl>
  42. </StackPanel>
  43. <StackPanel x:Name="LineStyleStackPanel" Height="90" Margin="5">
  44. <TextBlock Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_LineStyle}"></TextBlock>
  45. <cpdfcommon:CPDFLineStyleControl x:Name="CPDFLineStyleControl"/>
  46. </StackPanel>
  47. <StackPanel x:Name="ArrowStackPanel" Visibility="Visible" Height="75" Margin="5">
  48. <StackPanel Orientation="Horizontal" Margin="0,0,0,10">
  49. <TextBlock Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_Start}"></TextBlock>
  50. <TextBlock Text="&amp;" Margin="2,0,2,0"></TextBlock>
  51. <TextBlock Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_End}"></TextBlock>
  52. </StackPanel>
  53. <cpdfcommon:CPDFArrowControl x:Name="CPDFArrowControl"></cpdfcommon:CPDFArrowControl>
  54. </StackPanel>
  55. <StackPanel Height="160" Margin="5">
  56. <TextBlock Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_Note}"></TextBlock>
  57. <TextBox Height="100" x:Name="NoteTextBox" TextChanged="NoteTextBox_TextChanged" TextWrapping="Wrap" AcceptsReturn="True"></TextBox>
  58. </StackPanel>
  59. </StackPanel>
  60. </Grid>
  61. </ScrollViewer>
  62. </UserControl>