Maybe I shouldn't be doing this but when I programmatically change themes I get a null reference error every so often. I'll attach the exception so maybe you guys could take a look and see if an extra null check would be useful somewhere. Wish I had a good way to reproduce it but this is all I got at the moment.
Here's what I do when I change themes:
// i switch between dark and light versions
SfSkinManager.SetTheme(window, new Theme("MaterialLightCustom;MaterialLight"));
// i load these resources from the theme into the main resource dictionary so i can
// reference a few of the colors DynamicResoruces Helpers.LoadDictionary("/Syncfusion.Themes.MaterialLightCustom.WPF;component/SfDataGrid/SfDataGrid.xaml");
Helpers.LoadDictionary("/Syncfusion.Themes.MaterialLightCustom.WPF;component/Common/Brushes.xaml");
It works fine like 95% of the time. Then I guess once in a while I move the mouse over the wrong spot and just the wrong time and it blow sup. I also use DockingManager and have a few tabs and docked windows.
Attachment: nullerror_7477c916.zip