dynamic datatemplate binding in WPF datagridcolumn

i have a datagrid having a column of status. by default it'll display a textblock and the text property is binded with the viwemodel's status property.

when the status get changed from status1 to status2 the textblock should be converted to a hyperlink.

how to implement dynamic datatemplate binding to resolve the purpose described above?

链接地址: http://www.djcxy.com/p/44636.html

上一篇: WPF DataTemplate方法绑定参数

下一篇: 动态数据模板绑定在WPF数据网格列中