Style on AppSettings

6 posts, 1 answers
  1. Henrique Duarte
    Henrique Duarte avatar
    105 posts
    Member since:
    Oct 2003

    Posted 27 Apr 2009 Link to this post

    Guys,

    Do we have an appsettings to set the style to all Telerik Controls for WPF like we have for ASP.NET AJAX Controls?

    Regards,

    Henrique
  2. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 29 Apr 2009 Link to this post

    Hi Henrique Duarte,

    To change the theme of the whole application you have to use :
    StyleManager.ApplicationTheme = ThemeManager.FromName("Vista"
     
    Note that you should put this line in the Application constructor (before InitializeComponent method).

    Please let me know if you need more help.

    Sincerely yours,
    Boyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Henrique Duarte
    Henrique Duarte avatar
    105 posts
    Member since:
    Oct 2003

    Posted 29 Apr 2009 Link to this post

    Boyan,

    I want to let the user select a theme from a combo too and save his preference on database.
    I need to reopen the application?

    Regards,

    Henrique
  4. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 04 May 2009 Link to this post

    Hi Henrique,

    Sorry for the delayed reply!

    Yes, when you change the application theme, the effect will take place only after the application has been reloaded. This is a limitation of Silverlight because a Style cannot be set twice.

    Instead of refreshing the page, you can try recreating the root visual or the part of the application that you want to change.

    All the best,
    Miroslav
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Henrique Duarte
    Henrique Duarte avatar
    105 posts
    Member since:
    Oct 2003

    Posted 04 May 2009 Link to this post

    Hi Miroslav,

    Does WPF have the same limitation?
    If doesn't, how can I do that?

    Regards,

    Henrique
  6. Answer
    Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 04 May 2009 Link to this post

    Hi Henrique,

    I am sorry, I answered in a hurry and did not see that you were asking about the WPF controls.

    Currently the WPF Controls share the same implementation and you need to restart the application. We will make them dynamically skinnable in a future release.

    Kind regards,
    Miroslav
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top