CPDFMarkupUI.xaml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <UserControl x:Class="Compdfkit_Tools.PDFControlUI.CPDFMarkupUI"
  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:cpdfcommon="clr-namespace:Compdfkit_Tools.Common"
  7. xmlns:cpdftools="clr-namespace:Compdfkit_Tools.PDFControl"
  8. mc:Ignorable="d"
  9. d:DesignHeight="800" d:DesignWidth="300">
  10. <ScrollViewer VerticalScrollBarVisibility="Auto">
  11. <Grid Background="#FAFCFF">
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="170"></RowDefinition>
  14. <RowDefinition Height="80"></RowDefinition>
  15. <RowDefinition Height="80"></RowDefinition>
  16. <RowDefinition Height="200"></RowDefinition>
  17. <RowDefinition></RowDefinition>
  18. </Grid.RowDefinitions>
  19. <StackPanel Orientation="Vertical">
  20. <Border BorderThickness="1" BorderBrush="#1A000000">
  21. <Grid Height="40" Background="White" >
  22. <TextBlock x:Name="TitleTextBlock" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" FontFamily="Segoe UI"></TextBlock>
  23. </Grid>
  24. </Border>
  25. <cpdftools:CPDFAnnotationPreviewerControl x:Name="CPDFAnnotationPreviewerControl" Height="100" Margin="16"></cpdftools:CPDFAnnotationPreviewerControl>
  26. </StackPanel>
  27. <StackPanel Grid.Row="1" Margin="5">
  28. <TextBlock Text="Color"></TextBlock>
  29. <cpdfcommon:ColorPickerControl x:Name="ColorPickerControl" TransparentBtnProperty="Collapsed"></cpdfcommon:ColorPickerControl>
  30. </StackPanel>
  31. <StackPanel Grid.Row="2" Margin="5">
  32. <TextBlock Text="Opacity"></TextBlock>
  33. <cpdfcommon:CPDFOpacityControl x:Name="CPDFOpacityControl"></cpdfcommon:CPDFOpacityControl>
  34. </StackPanel>
  35. <StackPanel Grid.Row="3" Margin="5">
  36. <TextBlock Text="Note"></TextBlock>
  37. <TextBox Height="150" x:Name="NoteTextBox" TextChanged="NoteTextBox_TextChanged" TextWrapping="Wrap" AcceptsReturn="True"></TextBox>
  38. </StackPanel>
  39. </Grid>
  40. </ScrollViewer>
  41. </UserControl>