我有一个带有标题和描述的图像列表(ListBox)。图像尚未下载,但标题和描述将首先显示。下载图像后,我怎么知道要更新图像?
部分xml:
<ListBox.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Image Margin="5" Source="{Binding Image}" Grid.Column="0" Name="DCIM" />
<TextBlock Grid.Column="1" Margin="2" Text="{Binding Title}" Name="Title" TextWrapping="NoWrap" TextTrimming="WordEllipsis" />
<TextBlock Grid.Column="1" Margin="2" Text="{Binding Desc}" Name="count" TextWrapping="NoWrap" TextTrimming="WordEllipsis" />
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>