Issue with changing theme dyanamicaly

2 posts, 0 answers
  1. Ganesh Jagdale
    Ganesh Jagdale avatar
    69 posts
    Member since:
    Dec 2009

    Posted 19 Feb 2010 Link to this post

    Hi telerik,

    I saw ur example in http://www.telerik.com/community/forums/silverlight/general-discussions/urgent-theme-at-runtime.aspx which contain on changing item in comboBox change respective  theme .yes  It is nice
    But in that example u write set theme for each control.
    Is this possible only one statement will change theme for all control without specifying theme to each control?
    like 
    StyleManager.ApplicationTheme = new SummerTheme() //  

    The statement is works but for intial time but not chaging theme on change of ComboBox.
    Is there any to clear first theme apply next theme?

    silverlight provides 

     

    ImplicitStyleManager.SetResourceDictionaryUri(  obj,  uri_theme );

     

     obj ==> is Framework element means parent element and 
    using above statement theme applied for it's children.

    I have this situation because I am using CAL in which  multiple module are there..
    This all modules are loaded in one parent container like "Grid". Each module contain many telerik controls.
    Not possible set all Theme  property of each control.

    Pls help out..
     
    Thansk
    Ganesh

     
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 24 Feb 2010 Link to this post

    Hello Ganesh,

    Thank you for contacting us.

    Attached you will find a sample project, in which is illustrated how you can change the theme of a Silverlight application via a ComboBox. There is used a ResetRootVisual() method which creates an instance of MainPage and add it to the RootVisual panel every time the theme is changed.

    If you need further assistance please feel free to contact us again.

    Kind regards,
    Konstantina
    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