Код: Выделить всё
...
Изменить
После других попыток я также попробовал это в конструкторе класса CustomDataGrid, производного от DataGrid:
Код: Выделить всё
Style _style = new Style(typeof(DataGridColumnHeader));
_style.BasedOn = Application.Current.Resources["DataGridColumnHeaderStyle"] as Style;
_style.Setters.Add(new EventSetter(MouseDoubleClickEvent, new MouseButtonEventHandler(OnTableDoubleClick)));
this.ColumnHeaderStyle = _style;
Подробнее здесь: https://stackoverflow.com/questions/221 ... -data-grid