RadWindow Dialog theme - code behind

3 posts, 1 answers
  1. Craig Mellon
    Craig Mellon avatar
    53 posts
    Member since:
    May 2005

    Posted 04 Sep 2012 Link to this post

    Hi, I'm calling the RadWindow.Confirm in code behind but for some reason I can't set the theme of the confirm box, this is what I've tried so far -
    Dim radWindow As New RadWindow()
    StyleManager.SetTheme(radWindow, New Windows7Theme())
    RadWindow.Confirm("Do you want to save changes?", AddressOf OnSaveDialogClosed)

    I've also searched the forums / help files and can't find a solution or see why the above will not work.

    Many thanks!
  2. Answer
    Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 05 Sep 2012 Link to this post

    Hello Craig,

    In order to change the Confirm window theme you will need to call the StyleManager before the InitializeComponent() method in the MainPage. Note that when using the StyleManager you will changed the theme of all of the controls in the UserControl not only for the RadWindow control.

    I created and attached a sample project for you showing the proper way of changing the Confirm window theme.

    Hope this is helpful.

    Greetings,
    Vladi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Craig Mellon
    Craig Mellon avatar
    53 posts
    Member since:
    May 2005

    Posted 05 Sep 2012 Link to this post

    Perfect, thank you.
Back to Top