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

RadWindow & Implicit Style

7 Answers 468 Views
Window
This is a migrated thread and some comments may be shown as answers.
Xavier
Top achievements
Rank 1
Xavier asked on 05 Nov 2012, 09:32 PM
Hello,

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:
<telerik:RadWindow 
......
I disabled StyleManager as noticed in the documentation.
How can I style easily all my RadWindows ?
Thanks.
xsch

7 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 06 Nov 2012, 09:39 AM
Hello Xavier,

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.

Regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Xavier
Top achievements
Rank 1
answered on 06 Nov 2012, 04:22 PM

Hello Yana,

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.
Xavier

0
Brandon
Top achievements
Rank 1
answered on 30 Jul 2013, 03:15 PM
Could I get a answer to the previous question? I'm having the same issue Xavier posted in his last response with the only difference being that I'm using a RadRibbonWindow. I've searched all over the Telerik's documentation and forums and cannot find the solution.

Thanks,
Brandon
0
Yana
Telerik team
answered on 02 Aug 2013, 08:21 AM
Hello Brandon,

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.

Regards,
Yana
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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 >>
0
Martin
Top achievements
Rank 1
answered on 22 May 2014, 03:36 AM
This solution works fine in an application where you have an App.xaml to put the "<ResourceDictionary Source="WindowStyle.xaml" />" but how do you do the same in a shared user control assembly that has RadWindow base windows?

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? 
0
Yana
Telerik team
answered on 23 May 2014, 12:14 PM
Hi Martin,

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.

Regards,
Yana
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Martin
Top achievements
Rank 1
answered on 23 May 2014, 09:32 PM
Since I have included these questions in a support ticket I will follow up on the ticket instead.
Thanks.
Tags
Window
Asked by
Xavier
Top achievements
Rank 1
Answers by
Yana
Telerik team
Xavier
Top achievements
Rank 1
Brandon
Top achievements
Rank 1
Martin
Top achievements
Rank 1
Share this question
or