Error when changing visual style

6 posts, 0 answers
  1. Kjetil Kristoffer Solberg
    Kjetil Kristoffer Solberg avatar
    4 posts
    Member since:
    Oct 2009

    Posted 29 Jun 2010 Link to this post

    Hi.
    When changing visual style not the first time, but the second time, the application always chrashes. I change the styles like this:

    this

     

     

    .RadRibbonBar.SetValue(StyleManager.ThemeProperty, new Windows7Theme());

     

     

     

    this.RadPaneGroup.SetValue(StyleManager.ThemeProperty, new Windows7Theme());

     

     

     

    this.RetrivalDataGrid.SetValue(StyleManager.ThemeProperty, new Windows7Theme());

    It does not matter which style I change to. It always works the first time and always chrases the second time.

    The application error message is like this:

     

    An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in PresentationCore.dll

     

     


    Additional information: Specified argument was out of the range of valid values.

    Anyone know what this problem is?

    regards
     Kjetil

     

  2. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 29 Jun 2010 Link to this post

    Hi Kjetil Kristoffer Solberg,

    Could you please try to set a new theme using our StyleManager class. For example:

    StyleManager.SetTheme( mycontrol, new VistaTheme() );

    Kind regards,
    Milan
    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
  3. Kjetil Kristoffer Solberg
    Kjetil Kristoffer Solberg avatar
    4 posts
    Member since:
    Oct 2009

    Posted 29 Jun 2010 Link to this post

    Hi.

    That did not work either.

    Any more ideas?

    regards
     Kjetil
  4. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 29 Jun 2010 Link to this post

    Hi Kjetil Kristoffer Solberg,

    That sure is a strange problem. Could you please try reproduce the problem with the sample project that I have attached to this thread or send us a sample application that will allow us to reproduce the problem on our site.

    Thank you for your time.


    Kind regards,
    Milan
    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. Kjetil Kristoffer Solberg
    Kjetil Kristoffer Solberg avatar
    4 posts
    Member since:
    Oct 2009

    Posted 29 Jun 2010 Link to this post

    Hi.

    The sample you provided worked.

    I have my application ready for you to see. Where do i send it?

    regards
     Kjetil
  6. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 29 Jun 2010 Link to this post

    Hello Kjetil Kristoffer Solberg,

    Probably the easiest way to send us you project is to login @ telerik.com click on the "Support Tickets" link that is shown on your account view. From there you will be able to open a support ticked and attach the application.

    An alternative approach is to upload the project on one of the free sharing solutions and just past the link in this forum thread.


    Regards,
    Milan
    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