WPF CellEditingTemplate and duplicated events
问题 I've a WPF DataGrid with a DataGridTemplateColumn like this: <DataGridTemplateColumn IsReadOnly="False"> <DataGridTemplateColumn.CellTemplate> <DataTemplate> <TextBlock Text="{Binding Path=MyProperty, Mode=OneWay}" /> </DataTemplate> </DataGridTemplateColumn.CellTemplate> <DataGridTemplateColumn.CellEditingTemplate> <DataTemplate> <TextBox Text="{Binding Path=MyProperty, UpdateSourceTrigger=PropertyChanged}" TextChanged="ctl_TextChanged" /> </DataTemplate> </DataGridTemplateColumn