How to change theme for whole application

6 posts, 0 answers
  1. york
    york avatar
    160 posts
    Member since:
    Jul 2012

    Posted 04 Jan 2013 Link to this post

    Hi,

    I want to change theme for the entire wpf application. I am using RadControls for WPF Q3 2012. When use (in MainWindow.xaml.cs)
    StyleManager.ApplicationTheme = new VistaTheme();
    Compiler gives,
    Error    1    The name 'StyleManager' does not exist in the current context.
    Error    2    The type or namespace name 'VistaTheme' could not be found (are you missing a using directive or an assembly reference?)

    I notice that the Telerik.Windows.Themes.Vista.dll is not added. However Telerik.Windows.Themes.Vista.dll can not be found (it is not in Binaries directory). I need help on this. Thanks.

    York


  2. york
    york avatar
    160 posts
    Member since:
    Jul 2012

    Posted 07 Jan 2013 Link to this post

    This is solved.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Cosmin
    Cosmin avatar
    1 posts
    Member since:
    Sep 2013

    Posted 06 Sep 2013 Link to this post

    How was this issue solved?
  5. Tony
    Tony avatar
    2 posts
    Member since:
    Jan 2013

    Posted 08 Jul 2015 in reply to york Link to this post

    What the **** is the point of just saying that the problem is solved without putting the solution!?
  6. york
    york avatar
    160 posts
    Member since:
    Jul 2012

    Posted 10 Jul 2015 in reply to Tony Link to this post

    The post is for long time ago and I forget the solution. If you have same problem, please post a question again.
  7. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 10 Jul 2015 Link to this post

    Hi,

    I would suggest you using Implicit Styles instead of StyleManager. You can check this help article on Implicit Styles and article on Switching Themes at Runtime for a reference.

    Regards,
    Dimitrina
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top
UI for WPF is Visual Studio 2017 Ready