Hi,
I'm using version 11.1.0541.
I would like to use a FanPanel or ZapPanel to display a large number of image.
This works, but it's very slow to load. I feel that virtualization does not work.
Does anyone uses it, and if so how?
this is the code I use.
<ListView x:Name="lv" Grid.Row="1"
ItemsSource="{Binding Masks}"
ScrollViewer.IsDeferredScrollingEnabled="True" IsSynchronizedWithCurrentItem="True"
SelectionChanged="lv_SelectionChanged" Loaded="lv_Loaded" PreviewMouseWheel="lv_PreviewMouseWheel" MouseDoubleClick="lv_MouseDoubleClick"
Background="{DynamicResource {x:Static themes:DockingCommonDictionary.DockSiteBackgroundBrushKey}}" >
<ListView.ItemsPanel>
<<ItemsPanelTemplate>
<views:ZapPanel Orientation="Horizontal" VirtualizingStackPanel.IsVirtualizing="True"></views:ZapPanel>
</ItemsPanelTemplate>
</ListView.ItemsPanel>
<ListView.View>
<GridView>
<GridViewColumn Header="Picture">
<GridViewColumn.CellTemplate>
<DataTemplate>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Image Grid.Row="0" Width="160" Height="160"
Source="{Binding Path=Path,
Converter={StaticResource myUriToImageConverterResize}}"/>
<TextBlock Grid.Row="1" Text="{Binding Id}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<TextBlock Grid.Row="2" Text="{Binding Name}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<TextBlock Grid.Row="3" Text="{Binding Manufacturer}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Grid>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
</GridView>
</ListView.View>
I'm using version 11.1.0541.
I would like to use a FanPanel or ZapPanel to display a large number of image.
This works, but it's very slow to load. I feel that virtualization does not work.
Does anyone uses it, and if so how?
this is the code I use.
<ListView x:Name="lv" Grid.Row="1"
ItemsSource="{Binding Masks}"
ScrollViewer.IsDeferredScrollingEnabled="True" IsSynchronizedWithCurrentItem="True"
SelectionChanged="lv_SelectionChanged" Loaded="lv_Loaded" PreviewMouseWheel="lv_PreviewMouseWheel" MouseDoubleClick="lv_MouseDoubleClick"
Background="{DynamicResource {x:Static themes:DockingCommonDictionary.DockSiteBackgroundBrushKey}}" >
<ListView.ItemsPanel>
<<ItemsPanelTemplate>
<views:ZapPanel Orientation="Horizontal" VirtualizingStackPanel.IsVirtualizing="True"></views:ZapPanel>
</ItemsPanelTemplate>
</ListView.ItemsPanel>
<ListView.View>
<GridView>
<GridViewColumn Header="Picture">
<GridViewColumn.CellTemplate>
<DataTemplate>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Image Grid.Row="0" Width="160" Height="160"
Source="{Binding Path=Path,
Converter={StaticResource myUriToImageConverterResize}}"/>
<TextBlock Grid.Row="1" Text="{Binding Id}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<TextBlock Grid.Row="2" Text="{Binding Name}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
<TextBlock Grid.Row="3" Text="{Binding Manufacturer}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Grid>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
</GridView>
</ListView.View>