WPF ListView VisualPanel
<ItemsPanelTemplate x:Key="ItemsPanelTemplate1">
<VirtualizingStackPanel IsItemsHost="True"/>
</ItemsPanelTemplate>
<DataTemplate x:Key="DataTemplate1">
<Image Margin="2,2,2,2" Source="{Binding ThumbnailFilePath, Converter={StaticResource StrToImageConverter}}"
HorizontalAlignment="Center" VerticalAlignment="Center" />
</DataTemplate>
<ListView x:Name="lstView" Margin="0" VerticalAlignment="Stretch" ItemsPanel="{StaticResource ItemsPanelTemplate1}"
ItemTemplate="{StaticResource DataTemplate1}" VirtualizingStackPanel.IsVirtualizing="True"
VirtualizingStackPanel.VirtualizationMode="Recycling" ScrollViewer.CanContentScroll="True"
ScrollViewer.IsDeferredScrollingEnabled="True"
IsSynchronizedWithCurrentItem="True" SelectionChanged="ListView_SelectionChanged">
https://muzizongheng.blog.csdn.net/