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

RadWindow Prompt, Alert, Confirm theme/style

4 Answers 395 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jason McNair
Top achievements
Rank 1
Jason McNair asked on 16 Sep 2010, 07:23 PM
I'm using the RadWindow static methods for Prompt, Alert, and Confirm.  Everything works great, but since they are static methods, I don't see any way to change the window's theme or style.  I can see in the WPF RadWindow demo that it is being done, but I can't find any code that seems to reflect how the theme is set.  How is this being done?  Is it some application level setting that is being changed?  If so, what if I don't want to apply the theme that I want for my RadWindow to the rest of my application?

-Jason

4 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 17 Sep 2010, 07:38 AM
Hello Jason,

 These methods have overloads that allow you to provide an object of type DialogParameters, which allows you to specify a Theme to be used.

Hope this helps!

Kind regards,
Miroslav Nedyalkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jason McNair
Top achievements
Rank 1
answered on 29 Sep 2010, 06:24 PM
Thanks for the response.  I just got around to trying it, and setting the theme in the DialogParameters doesn't appear to change anything.  I'm going about it like this:

RadWindow.Prompt(new DialogParameters
   {
      Content = "Prompt Content",
      Closed = Test_Method,
      DefaultPromptResultValue = "default name",
      Theme = new Windows7Theme()
   });

Am I doing something wrong?  The prompt is still using the default theme.

-Jason
0
Jason McNair
Top achievements
Rank 1
answered on 04 Oct 2010, 05:11 PM
Any word on this?  I think you have a bug.  It was reported in this thread also:

http://www.telerik.com/community/forums/wpf/window/prompt-can-t-change-theme.aspx

That user was able to find a work around by applying a theme to his entire application to get a theme applied to his radwindow.  That workaround does not work for me, because applying a theme at the application level makes broad and unintended changes.

Eagerly awaiting your response,
Jason
0
Pana
Telerik team
answered on 05 Oct 2010, 11:35 AM
Hello Jason,

Can you try the attached project with the latest officially released dlls? It does open Window7 alert here.

Kind regards,
Panayot
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Window
Asked by
Jason McNair
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Jason McNair
Top achievements
Rank 1
Pana
Telerik team
Share this question
or