Home › Forums › WPF controls › Xceed DataGrid for WPF › Setting custom Theme at runtime
Sorry if this is dead simple and I’m just missinf something obvious. I have searched this forum and the samples and can not find an easy way to set a new theme for my grid at runtime.
I tried this…myGrid.View.Theme = MyThemes.myTheme
and the error I get is “myTheme is a Type in MyThemes and can not be used as an expression”
This MUST be easy but I can’t get it. Any help is appreciated.
Imported from legacy forums. Posted by Dugrhill (had 1828 views)
Duh! Sorry guys, guess I had a little brain hiccup.
Here is the solution…
myGrid.View.Theme = New MyThemes.myTheme
The ‘New’ makes all the difference in the world. :o)
Imported from legacy forums. Posted by Dugrhill (had 2963 views)