如何将WPF GridViewColumn转换为复选框?

时间:2012-01-26 19:39:27

标签: wpf xaml

如何将GridViewColumn转换为复选框(bool)?

 <ListView Name="MainTable" >
            <ListView.View>
                    <GridView>
                        <GridViewColumn DisplayMemberBinding="{Binding Filename}" Width="140" Header="{lex:LocTextExtension Key=Name, Dict=Resources, Assembly=Mega.Player}" />
                        <GridViewColumn DisplayMemberBinding="{Binding IsSuccess}" Width="60" Header="{lex:LocTextExtension Key=Success, Dict=Resources, Assembly=Mega.Player}" />

1 个答案:

答案 0 :(得分:3)

删除DisplayMemberBinding并创建包含绑定CheckBox的{​​{3}}。