Home Forums WPF controls Xceed DataGrid for WPF Setting custom Theme at runtime

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #26234 |

    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.

    Dugr

    Imported from legacy forums. Posted by Dugrhill (had 1828 views)

    User (Old forums)
    Member
    Post count: 23064

    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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.