I would like to modify the control template for the DataGrid (4.0 version) but I am not sure what the existing template looks like. Does anyone know what it is or where I could find it?
In general: For some WPF control, how can I see the default content the respective control template?
I would recommend going into Blend (if you have it) and extracting the Template. Otherwise, you can get the XAML using XAMLWriter.
This unfortunately named page (I don’t think this is really “Kid’s Stuff”, do you?) has an example of doing both of these things.
In case the page does happen to go away (2009 is pretty far in the rear-view mirror):
All credit to Shafqat Ahmed.