【发布时间】:2018-12-17 19:55:30
【问题描述】:
我有一个 DataGrid,其列在后面的代码中定义如下:
MyGrid.Columns.Add(new DataGridTextColumn()
{
Width = new DataGridLength(1, DataGridLengthUnitType.Star),
Header = "Name",
Binding = new Binding("Name") { NotifyOnTargetUpdated = true},
ElementStyle = style,
});
我的问题是在代码后面的哪里调用OnTargetUpdated 事件?
【问题讨论】:
-
你想触发事件还是从后面的代码中做出反应?