CPDFNoteUI.xaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <UserControl x:Class="ComPDFKit.Controls.PDFControlUI.CPDFNoteUI"
  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.PDFControlUI"
  7. xmlns:cpdfcommon="clr-namespace:ComPDFKit.Controls.Common"
  8. xmlns:cpdftools="clr-namespace:ComPDFKit.Controls.PDFControl"
  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="TitileTextBlock" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Title_Note}" 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_Color}"></TextBlock>
  29. <cpdfcommon:ColorPickerControl x:Name="ColorPickerControl" TransparentBtnProperty="Collapsed"></cpdfcommon:ColorPickerControl>
  30. </StackPanel>
  31. <StackPanel Height="200" Margin="5">
  32. <TextBlock Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_Note}"></TextBlock>
  33. <TextBox Height="150" x:Name="NoteTextBox" TextChanged="NoteTextBox_TextChanged" TextWrapping="Wrap" AcceptsReturn="True"></TextBox>
  34. </StackPanel>
  35. </StackPanel>
  36. </Grid>
  37. </ScrollViewer>
  38. </UserControl>