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

     

  2. Answer
    Masha
    Admin
    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)

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. paully21
    paully21 avatar
    3 posts
    Member since:
    Feb 2007

    Posted 22 Dec 2015 Link to this post

    Masha,

    That worked great...Thanks!

    Paul

Back to Top