阅读背景:

WPF Datagrid:使用基于数据源数值的转换器在列中显示图像

来源:互联网 

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



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: