CPdfThumbnailUI.xaml 1.6 KB

123456789101112131415161718192021222324252627282930
  1. <UserControl x:Class="ComPDFKit.Controls.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.Controls.PDFControlUI"
  7. xmlns:wpftk="clr-namespace:WpfToolkit.Controls;assembly=VirtualizingWrapPanel"
  8. mc:Ignorable="d"
  9. d:DesignHeight="450" d:DesignWidth="800">
  10. <UserControl.Resources>
  11. <ResourceDictionary>
  12. <ResourceDictionary.MergedDictionaries>
  13. <ResourceDictionary Source="../../../Asset/Styles/ListBoxItemStyle.xaml"></ResourceDictionary>
  14. </ResourceDictionary.MergedDictionaries>
  15. </ResourceDictionary>
  16. </UserControl.Resources>
  17. <Grid>
  18. <ListBox Name="ThumbListBox" SelectionChanged="ThumbListBox_SelectionChanged" SelectionMode="Single" ScrollViewer.ScrollChanged="ThumbListBox_ScrollChanged" BorderThickness="0"
  19. ScrollViewer.VerticalScrollBarVisibility="Auto">
  20. <ListBox.Resources>
  21. <Style TargetType="ListBoxItem" BasedOn="{StaticResource ThumbnailListBoxItemStyle}"/>
  22. </ListBox.Resources>
  23. <ListBox.ItemsPanel>
  24. <ItemsPanelTemplate>
  25. <wpftk:VirtualizingWrapPanel></wpftk:VirtualizingWrapPanel>
  26. </ItemsPanelTemplate>
  27. </ListBox.ItemsPanel>
  28. </ListBox>
  29. </Grid>
  30. </UserControl>