I have a WPF DataGrid with some styling, properties and events.
I want to override its OnMouseLeftButtonDown and OnMouseLeftButtonUp events to do something.
How do I do this?
Thanks!
I have a WPF DataGrid with some styling, properties and events. I want to
Share
Create your own class based on
DataGridand add the event handlers you need. Then in your XAML use yourDataGridrather than the “normal” one.And in XAML: