i want to display image in each item on VirtualizaingWrapPanel.
I try to modify the sample code VirtualizingWrapPanel.WPF Example.xml
by adding a line (bold below) to show a image
< DataTemplate x:Key="dataTemplate">
..........................
< TextBlock FontWeight="Bold" Text="Discontinued:" Grid.Row="4"/>
<TextBlock Text="{Binding Discontinued}" Grid.Row="4" Grid.Column="1" />
<TextBlock FontWeight="Bold" Text="Image:" Grid.Row="5"/>
<Image Source="{Binding Image}" Grid.Row="5" Grid.Column="1" />
</Grid>
the Image is a property with BitmapImage Type.
After recomplie the sample and i can see the image shown.
However,when i resize the sample window.the app seems hang.
I would like to known the properly way to display a image in VirtualizingWrapPanel?