CPdfThumbnailUI.xaml 1.5 KB

1234567891011121314151617181920212223242526
  1. <UserControl x:Class="compdfkit_tools.PDFControlUI.CPDFThumbnailUI"
  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.PDFControlUI"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800">
  9. <Grid>
  10. <ListBox Name="ThumbListBox" SelectionChanged="ThumbListBox_SelectionChanged" SelectionMode="Single" ScrollViewer.ScrollChanged="ThumbListBox_ScrollChanged">
  11. <ListBox.ItemTemplate>
  12. <DataTemplate>
  13. <StackPanel>
  14. <Viewbox Margin="0,5,0,0" Stretch="Uniform" Width="{Binding ThumbnailWidth}" Height="{Binding ThumbnailHeight}">
  15. <Border BorderThickness="2" BorderBrush="Black">
  16. <Image Source="{Binding Path=ImageData.Source}" Margin="0,0,5,0" Width="{Binding ImageWidth}" Height="{Binding ImageHeight}"></Image>
  17. </Border>
  18. </Viewbox>
  19. <TextBlock Text="{Binding ShowPageText}" HorizontalAlignment="Center"></TextBlock>
  20. </StackPanel>
  21. </DataTemplate>
  22. </ListBox.ItemTemplate>
  23. </ListBox>
  24. </Grid>
  25. </UserControl>