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

Theme selector?

3 Answers 120 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
madladuk
Top achievements
Rank 2
madladuk asked on 13 Oct 2010, 03:06 PM
Hi, I am trying to replicate your theme selector drop down so that it changes the theme of the controls.

If I call StyleManager.ApplicationTheme = new Windows7Theme(); The controls do not redraw themselves, can you advise where I am going wrong?

P

3 Answers, 1 is accepted

Sort by
0
madladuk
Top achievements
Rank 2
answered on 13 Oct 2010, 05:01 PM
My theme selector is on my main page, so I get a reference to this and wire up the SelectionChanged event within my usercontrol [this contains some gauges]. I then try to set the theme, however it crashes out with a major error and the browser shuts down?

public GaugeItemControl()
       {
           InitializeComponent();
           this.Loaded += new RoutedEventHandler(GaugeItemControl_Loaded);
           BusyIndicator bi = Application.Current.RootVisual as BusyIndicator;
           MainPage mp = bi.Content as MainPage;
           mp.themeSelector.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(themeSelector_SelectionChanged);
       }
       void themeSelector_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
       {
           var o = this.ChildrenOfType<RadGauge>();
           foreach(var i in o)
               StyleManager.SetTheme(i, new Windows7Theme());
       }

Is there some way to bind the theme to the grid [that the gauges are in] then just change the theme on the grid?

P
0
Sia
Telerik team
answered on 19 Oct 2010, 10:21 AM
Hello Paul Ashford,

First of all, please excuse us for the delay of our answer.
I have investigated your scenario and I can confirm that there is a problem with RadGauge. Unfortunately our developers will need more time to provide you with working solution. I will update you as soon as there is sufficient progress with this.

Sincerely yours,
Sia
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
Sia
Telerik team
answered on 26 Oct 2010, 02:47 PM
Hello Paul Ashford,

Your problem should be fixed now. Please download our latest internal build which will be available on Friday and let us know if the experienced behavior still persists with it.

Kind regards,
Sia
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
General Discussions
Asked by
madladuk
Top achievements
Rank 2
Answers by
madladuk
Top achievements
Rank 2
Sia
Telerik team
Share this question
or