Questions tagged «multidatatrigger»

2
WPF错误:找不到目标元素的管理FrameworkElement
我有一个DataGrid带有图像的行。该图像与触发器绑定到特定状态。当状态改变时,我想改变图像。 模板本身设置HeaderStyle为DataGridTemplateColumn。该模板具有一些绑定。第一个具有约束力的“ Day”(日期)显示了它是星期几,“ State”(状态)通过触发器更改了图像。 这些属性在ViewModel中设置。 特性: public class HeaderItem { public string Day { get; set; } public ValidationStatus State { get; set; } } this.HeaderItems = new ObservableCollection<HeaderItem>(); for (int i = 1; i < 15; i++) { this.HeaderItems.Add(new HeaderItem() { Day = i.ToString(), State = ValidationStatus.Nieuw, }); } …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.