This is a migrated thread and some comments may be shown as answers.

.Prompt can't change theme

1 Answer 113 Views
Window
This is a migrated thread and some comments may be shown as answers.
Yves
Top achievements
Rank 1
Yves asked on 12 Aug 2010, 10:09 AM
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

1 Answer, 1 is accepted

Sort by
0
Yves
Top achievements
Rank 1
answered on 12 Aug 2010, 10:49 AM
fixed.

I've added this line on WindowLoaded :

StyleManager.ApplicationTheme = new Office_BlueTheme();

Tags
Window
Asked by
Yves
Top achievements
Rank 1
Answers by
Yves
Top achievements
Rank 1
Share this question
or