1234567891011121314151617181920212223242526272829303132 |
- <UserControl x:Class="compdfkit_tools.PDFControlUI.CPDFThumbnailUI"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:compdfkit_tools.PDFControlUI"
- xmlns:wpftk="clr-namespace:WpfToolkit.Controls;assembly=VirtualizingWrapPanel"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800">
- <Grid>
- <ListBox Name="ThumbListBox" SelectionChanged="ThumbListBox_SelectionChanged" SelectionMode="Single" ScrollViewer.ScrollChanged="ThumbListBox_ScrollChanged" >
- <ListBox.ItemsPanel>
- <ItemsPanelTemplate>
- <wpftk:VirtualizingWrapPanel></wpftk:VirtualizingWrapPanel>
- </ItemsPanelTemplate>
- </ListBox.ItemsPanel>
- <ListBox.ItemTemplate>
- <DataTemplate>
- <StackPanel>
- <Viewbox Margin="0,5,0,0" Stretch="Uniform" Width="{Binding ThumbnailWidth}" Height="{Binding ThumbnailHeight}">
- <Border BorderThickness="2" BorderBrush="Black">
- <Image Source="{Binding Path=ImageData.Source}" Margin="0,0,5,0" Width="{Binding ImageWidth}" Height="{Binding ImageHeight}"></Image>
- </Border>
- </Viewbox>
- <TextBlock Text="{Binding ShowPageText}" HorizontalAlignment="Center"></TextBlock>
- </StackPanel>
- </DataTemplate>
-
- </ListBox.ItemTemplate>
- </ListBox>
- </Grid>
- </UserControl>
|