Changing the title background color of RadWindow.Alert

3 posts, 1 answers
  1. paully21
    paully21 avatar
    3 posts
    Member since:
    Feb 2007

    Posted 21 Dec 2015 Link to this post

    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()
    04.    Theme = new Windows8TouchTheme(),
    05.    Content = GetAlarmDialogContent(),
    06.    Closed = OnAlarmDialogClosed,
    07.    OkButtonContent = "Acknowledge",
    08.    Owner = this


  2. Answer
    Masha avatar
    355 posts

    Posted 22 Dec 2015 Link to this post

    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)

    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
  3. DevCraft R3 2016 release webinar banner
  4. paully21
    paully21 avatar
    3 posts
    Member since:
    Feb 2007

    Posted 22 Dec 2015 Link to this post


    That worked great...Thanks!


Back to Top