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

Error when changing visual style

5 Answers 73 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kjetil Kristoffer Solberg
Top achievements
Rank 1
Kjetil Kristoffer Solberg asked on 29 Jun 2010, 11:51 AM

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

 

5 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 29 Jun 2010, 12:37 PM
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
0
Kjetil Kristoffer Solberg
Top achievements
Rank 1
answered on 29 Jun 2010, 12:52 PM
Hi.

That did not work either.

Any more ideas?

regards
 Kjetil
0
Milan
Telerik team
answered on 29 Jun 2010, 01:15 PM
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
0
Kjetil Kristoffer Solberg
Top achievements
Rank 1
answered on 29 Jun 2010, 01:30 PM
Hi.

The sample you provided worked.

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

regards
 Kjetil
0
Milan
Telerik team
answered on 29 Jun 2010, 01:41 PM
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
Tags
General Discussions
Asked by
Kjetil Kristoffer Solberg
Top achievements
Rank 1
Answers by
Milan
Telerik team
Kjetil Kristoffer Solberg
Top achievements
Rank 1
Share this question
or