CPDFThumbnailControl.xaml 1.5 KB

1234567891011121314151617181920212223242526
  1. <UserControl x:Class="Compdfkit_Tools.PDFControl.CPDFThumbnailControl"
  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:ui="clr-namespace:Compdfkit_Tools.PDFControlUI"
  8. xmlns:common="clr-namespace:Compdfkit_Tools.Common"
  9. mc:Ignorable="d"
  10. d:DesignHeight="450" d:DesignWidth="800">
  11. <UserControl.Resources>
  12. <ResourceDictionary>
  13. <common:BotaResourceConverter x:Key="BotaResourceConverter"></common:BotaResourceConverter>
  14. </ResourceDictionary>
  15. </UserControl.Resources>
  16. <Grid>
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="auto"></RowDefinition>
  19. <RowDefinition Height="*"></RowDefinition>
  20. </Grid.RowDefinitions>
  21. <Border Height="50">
  22. <TextBlock FontSize="14" Text="{Binding Converter={StaticResource BotaResourceConverter},ConverterParameter=Title_Thumb}" Foreground="#42464D" Margin="16,0,0,0" VerticalAlignment="Center"></TextBlock>
  23. </Border>
  24. <ui:CPDFThumbnailUI BorderThickness="0" Grid.Row="1" x:Name="ThumbControl" SizeChanged="ThumbControl_SizeChanged" PreviewMouseWheel="ThumbControl_MouseWheel"></ui:CPDFThumbnailUI>
  25. </Grid>
  26. </UserControl>