CPDFMarkupUI.xaml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <UserControl x:Class="ComPDFKit.Controls.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.Controls.Common"
  7. xmlns:cpdftools="clr-namespace:ComPDFKit.Controls.PDFControl"
  8. mc:Ignorable="d"
  9. d:DesignHeight="800" d:DesignWidth="300">
  10. <UserControl.Resources>
  11. <ResourceDictionary>
  12. <cpdfcommon:PropertyPanelResourceConverter x:Key="PropertyPanelResourceConverter"></cpdfcommon:PropertyPanelResourceConverter>
  13. </ResourceDictionary>
  14. </UserControl.Resources>
  15. <ScrollViewer VerticalScrollBarVisibility="Auto">
  16. <Grid Background="#FAFCFF">
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="170"></RowDefinition>
  19. <RowDefinition Height="80"></RowDefinition>
  20. <RowDefinition Height="80"></RowDefinition>
  21. <RowDefinition Height="200"></RowDefinition>
  22. <RowDefinition></RowDefinition>
  23. </Grid.RowDefinitions>
  24. <StackPanel Orientation="Vertical">
  25. <Border BorderThickness="1" BorderBrush="#1A000000">
  26. <Grid Height="40" Background="White" >
  27. <TextBlock x:Name="TitleTextBlock" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" FontFamily="Microsoft YaHei"></TextBlock>
  28. </Grid>
  29. </Border>
  30. <cpdftools:CPDFAnnotationPreviewerControl x:Name="CPDFAnnotationPreviewerControl" Height="100" Margin="16"></cpdftools:CPDFAnnotationPreviewerControl>
  31. </StackPanel>
  32. <StackPanel Grid.Row="1" Margin="5">
  33. <TextBlock Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_Color}"></TextBlock>
  34. <cpdfcommon:ColorPickerControl x:Name="ColorPickerControl" TransparentBtnProperty="Collapsed"></cpdfcommon:ColorPickerControl>
  35. </StackPanel>
  36. <StackPanel Grid.Row="2" Margin="5">
  37. <TextBlock Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_Opacity}"></TextBlock>
  38. <cpdfcommon:CPDFOpacityControl x:Name="CPDFOpacityControl"></cpdfcommon:CPDFOpacityControl>
  39. </StackPanel>
  40. <StackPanel Grid.Row="3" Margin="5">
  41. <TextBlock Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_Note}"></TextBlock>
  42. <TextBox Height="150" x:Name="NoteTextBox" TextChanged="NoteTextBox_TextChanged" TextWrapping="Wrap" AcceptsReturn="True"></TextBox>
  43. </StackPanel>
  44. </Grid>
  45. </ScrollViewer>
  46. </UserControl>