Theme selector?

4 posts, 0 answers
  1. madladuk
    madladuk avatar
    126 posts
    Member since:
    Dec 2009

    Posted 13 Oct 2010 Link to this post

    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
  2. madladuk
    madladuk avatar
    126 posts
    Member since:
    Dec 2009

    Posted 13 Oct 2010 Link to this post

    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
  3. DevCraft banner
  4. Sia
    Admin
    Sia avatar
    667 posts

    Posted 19 Oct 2010 Link to this post

    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
  5. Sia
    Admin
    Sia avatar
    667 posts

    Posted 26 Oct 2010 Link to this post

    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
Back to Top