问题描述
- WPF DATAGRID 自定义列
-
datagrid 自定义列 DataTemplate 中,在xaml中怎么根据数据源的值做更改,例如:<Button Text="{Binding Path=state}" />
中 state的值是1或0,我想显示的是冻结或正常
解决方案
http://www.cnblogs.com/zlgcool/archive/2008/10/22/1316605.html
可以添加转换器进行实现
时间: 2024-08-03 21:13:57