I have the following XAML:
我有以下XAML:
<Window.Resources>
<myApp:ImageDisplayConvertor x:Key="ImageDisplayConvertor" />
</Window.Resources>
<DataGridTemplateColumn Header="Icon">
<DataGridTemplateColumn.CellTemplate >
<DataTemplate>
<Image Name="img" Source="{Binding Game,Converter={StaticResource ImageDisplayConvertor}}" />
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<Windo