I want to use the Style of Windows8 Theme for my "RadWindow", but I want to change
just the "WindowHeEaderBackground" color from blue to green.
How can I solve this easily.
Thanks a lot
Regards
Rene
1 Answer, 1 is accepted
0
Accepted
Kalin
Telerik team
answered on 27 May 2014, 10:59 AM
Hello Rene,
The Header of RadWindow uses the AccentBrush of the Windows8Theme and you could easily change its color by modifying that brush. Note that will also affect the appearance of the other controls used in the project:
However if you need to change the background of the Header of a particular RadWindow you can do from the code behind the following way:
var window = new RadWindow { Width = 500, Height = 500 };
window.Show();
var header = window.Template.FindName("Header", window) as Grid;
header.Background = Brushes.Red;
Alternatively you can extract the ControlTemplate of RadWindow, modify the Background color of the Grid named Header and apply that template to the desired Window.
Hope one of these solution will work for you.
Regards,
Kalin
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.