In an earlier post we saw it was easy to change styles using ImplicitStyleManager. But TabControl and DataGrid were not used in the sample. Looks like we need to do some additional work to get that to work.
I modified the sample to include a DataGrid, TabControl and DataGrid nested inside a TabControl
Tha change is we have to add a LayoutUpdated eventhandler and have logic like this to set the styles for tabcontrol1 and datagrid2 which is nested inside the tabcontrol
void Demo_LayoutUpdated(object sender, EventArgs e)
you can comment these lines in the above event handler and see the styles are not going to be applied.
if you download the code and run it without any changes and change the style few times. it will start giving random errors. Try refreshing the application and use the same style again(it will work, but fail on some other style).
I am not sure why I get those errors
you can download the code here