I have ItemsControl (listbox) with some custom complex data templates. And its take few seconds to show window with this listbox!
My listbox datatemplate contains image:
<Image Stretch="Uniform"
x:Name="image"
Grid.ColumnSpan="1"
Source="{Binding ImagePath}"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Width="Auto"
Grid.Column="0"
MinWidth="20"
MinHeight="20"
d:LayoutOverrides="GridBox"
Margin="1,0,1,1" />
Almost all ImagePaths is null. I noticed that this null generates exception but wpf engine hides it! I think this is the source of problem. Is it possible to disable image loading when i know that image path is null!?