DataGrid columns don't use my default element styles (DataGridTextColumn, DataGridComboBoxColumn, DataGridCheckBoxColumn, DataGridHyperlinkColumn)

Jan 21, 2015 at 12:13 PM
Is there any way at all I can get a DataGrid to use my default element styles?

I am trying to create a skin for our development team to use when writing software. I want to be able to set styles up so that the DataGrid automatically uses the default styles given to elements like the TextBox, ComboBox, Checkbox and TextBlock.

As far as I can tell this property is not available to be set in the ResourceDictionary and the only way to override the styles is to set the ElementStyle and EditingElementStyle explicitly per column at the time the DataGrid is generated.

I don't want to rely on the development team applying the right styles on every column of a DataGrid - surely there must be a way for it to happen automatically?

Any help or guidance appreciated. Thanks