CPDFDisplaySettingsControl.xaml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <UserControl x:Class="ComPDFKit.Controls.PDFControl.CPDFDisplaySettingsControl"
  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.PDFControl"
  7. xmlns:pdftoolsui="clr-namespace:ComPDFKit.Controls.PDFControlUI"
  8. xmlns:common="clr-namespace:ComPDFKit.Controls.Common"
  9. mc:Ignorable="d"
  10. d:DesignHeight="720" d:DesignWidth="280" Width="260"
  11. Background="#ffffff">
  12. <UserControl.Resources>
  13. <ResourceDictionary>
  14. <common:CommonResourceConverter x:Key="CommonResourceConverter"/>
  15. </ResourceDictionary>
  16. </UserControl.Resources>
  17. <ScrollViewer VerticalScrollBarVisibility="Auto">
  18. <Grid>
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="auto"></RowDefinition>
  21. <RowDefinition Height="*"></RowDefinition>
  22. </Grid.RowDefinitions>
  23. <Border Height="40" BorderThickness="0,0,0,1" BorderBrush="#E0E0E0">
  24. <TextBlock FontSize="16" LineHeight="24" Foreground="#42464D" VerticalAlignment="Center" HorizontalAlignment="Center"
  25. Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Title_Display}"></TextBlock>
  26. </Border>
  27. <Border Grid.Row="1" Background="#FAFCFF">
  28. <StackPanel>
  29. <pdftoolsui:CPDFViewModeUI x:Name="ViewModeUI" Margin="16,26,0,0"/>
  30. <pdftoolsui:CPDFDrawModeUI x:Name="DrawModeUI" Grid.Row="1" Margin="16,26,0,0"></pdftoolsui:CPDFDrawModeUI>
  31. </StackPanel>
  32. </Border>
  33. </Grid>
  34. </ScrollViewer>
  35. </UserControl>