With Q3 2012, I discovered Implicit Style.
It really works great !!
The only thing that doesn't work are RadWindow, that doen't style properly. My RadWindow are used as User Control and created only via XAML:
I disabled StyleManager as noticed in the documentation.
How can I style easily all my RadWindows ?
7 Answers, 1 is accepted
Please check the Note at the bottom of the following article:
http://www.telerik.com/help/wpf/radwindow-how-to-use-radwindow-as-user-control.html - it demonstrates how to style RadWindow with implicit styles when it is used as a user control.
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Thanks : everything works great now !!!
All my RadWindows are correct.
But when I switch Themes at Run Time, all the RadControls are OK, except RadWindows that stay in the previous theme.
I have attached a sample project which demonstrates RadWindow with dynamic Implicit Styles. Note that I've created an additional ResourceDictionary file ( WindowStyle.xaml ) with the Style for the NewWindow which is removed and added with the rest ResourceDictionaries.
Hope this helps.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Those windows from a remote assembly are working fine in the application by adding the require resource dictionary (i.e.WindowStyle.xaml) but at design time of that remote assembly the windows are not showing up in the designer. Is there a trick to get the resource dictionary at the assembly level?
In case you do not have App.xaml, you could merge the ResourceDictionaries with code ( Application.Current.Resources.MergedDictionaries.Add..) or you could merge them locally in the User Control.
As to the second issue with the designer - could you please provide us with more details/sample project demonstrating the problem, so we to be able to test it at our side?
I am looking forward to your reply.