我正在尝试通过编辑单元格样式将事件处理程序添加到 DataTable 中的单元格。具体来说,我正在设置
<EventSetter Event="TargetUpdated" Handler="TaskDescription_TextChanged1Event"/>
这是我得到的错误:
System.Windows.FrameworkElement.TargetUpdated="TaskDescription_TextChanged1Event"
is not valid. 'TargetUpdated' must be a RoutedEvent registered with a name that
ends with the keyword "Event".
这是 TaskDescription_TextChanged1Event 的代码:
public void TaskDescription_TextChanged1Event(object sender,
RoutedEventArgs e)
{
}
我应该怎么做才能使它起作用?