CPDFDisplaySettingsControl.xaml 1.8 KB

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