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
Could you please try to set a new theme using our StyleManager class. For example:
StyleManager.SetTheme( mycontrol,
new
VistaTheme() );
Milan
the Telerik team
That did not work either.
Any more ideas?
regards
Kjetil
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
The sample you provided worked.
I have my application ready for you to see. Where do i send it?
regards
Kjetil
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