RadWindow Prompt, Alert, Confirm theme/style

5 posts, 0 answers
  1. Jason McNair
    Jason McNair avatar
    4 posts
    Member since:
    Mar 2010

    Posted 16 Sep 2010 Link to this post

    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
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 17 Sep 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jason McNair
    Jason McNair avatar
    4 posts
    Member since:
    Mar 2010

    Posted 29 Sep 2010 Link to this post

    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
  5. Jason McNair
    Jason McNair avatar
    4 posts
    Member since:
    Mar 2010

    Posted 04 Oct 2010 Link to this post

    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
  6. Pana
    Admin
    Pana avatar
    748 posts

    Posted 05 Oct 2010 Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready