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

Changing the title background color of RadWindow.Alert

2 Answers 139 Views
Window
This is a migrated thread and some comments may be shown as answers.
paully21
Top achievements
Rank 1
paully21 asked on 21 Dec 2015, 01:03 PM

I'm looking for a way to change the background of the title bar of a RadWindow.Alert.

I'm looking to mimic the affect that line one has on the title bar without changing the accent color for ALL items.

Ideally, I'd like to be able to pass in the Colors.Red or set a Style Resource somewhere.

 

01.Windows8TouchPalette.Palette.AccentColor = Colors.Red;
02.RadWindow.Alert(new DialogParameters()
03.{
04.    Theme = new Windows8TouchTheme(),
05.    Content = GetAlarmDialogContent(),
06.    Closed = OnAlarmDialogClosed,
07.    OkButtonContent = "Acknowledge",
08.    Owner = this
09.});
 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Masha
Telerik team
answered on 22 Dec 2015, 10:22 AM
Hi Paul,

In order to modify the RadAlert header background you need to extract the control template of RadWindow style and modify the background inside its control template. After-that you can use Alert's WindowStyle property and apply modified RadWindow style.

I've created a sample demo which demonstrated the above approach. Please note the project uses implicit styles(NoXaml binaries and Windows8Touch theme)

Regards,
Masha
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
paully21
Top achievements
Rank 1
answered on 22 Dec 2015, 03:37 PM

Masha,

That worked great...Thanks!

Paul

Tags
Window
Asked by
paully21
Top achievements
Rank 1
Answers by
Masha
Telerik team
paully21
Top achievements
Rank 1
Share this question
or