.Prompt can't change theme

2 posts, 0 answers
  1. Yves
    Yves avatar
    13 posts
    Member since:
    Jul 2010

    Posted 12 Aug 2010 Link to this post

    Hi,

    I need to call a RadWindow Prompt, but I would like to change the Theme. Here is what i've done :

    RadWindow.Prompt(new DialogParameters
                    {
                        Header = "Modifier pourcentage",
                        OkButtonContent = "Changer",
                        Content = "Saisir pourcentage (calcul globale : nbhitlus < (moyenne - moyenne * pourcentage))\nFormat pourcentage : 0,0",
                        Theme = new Office_BlueTheme(),
                        CancelButtonContent = "Annuler",
                        DefaultPromptResultValue = "33,33",
                        Closed = new EventHandler<WindowClosedEventArgs>(OnDialogClosed),
      
                    });

    But Theme still default theme. Any help ? :D

    I'm using Rad for WPF Q2 2009

    Thank's
  2. Yves
    Yves avatar
    13 posts
    Member since:
    Jul 2010

    Posted 12 Aug 2010 Link to this post

    fixed.

    I've added this line on WindowLoaded :

    StyleManager.ApplicationTheme = new Office_BlueTheme();

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top