RadDesktopAlertManager styling via DesktopAlertParameters DesktopAlertStyle

2 posts, 0 answers
  1. Oleg
    Oleg avatar
    1 posts
    Member since:
    Nov 2017

    Posted 05 Jan 2018 Link to this post

    I have an application which uses VistaTheme. If I want RadDesktopAlertManager to be using VisualStudio2013Theme, can I do that via DesktopAlertParameters DesktopAlertStyle somehow? Or in any other way?

  2. Sia
    Sia avatar
    745 posts

    Posted 10 Jan 2018 Link to this post


    If you set the Vista theme as application theme through StyleManager, you can set a different theme on control level by using the StyleManager.SetTheme method:
    var alert = this.CreateAlert();
    StyleManager.SetTheme(alert, new VisualStudio2013Theme());

    private RadDesktopAlertManager bottomRightManager = new RadDesktopAlertManager(AlertScreenPosition.BottomRight, 10);

     If you use NoXaml and implicit themes, you will need to merge the VisualStudio2013 resources as follows:
    var alert = this.CreateAlert();
    alert.Resources.MergedDictionaries.Add(new ResourceDictionary()
        Source = new Uri("/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.xaml", UriKind.RelativeOrAbsolute)
    alert.Resources.MergedDictionaries.Add(new ResourceDictionary()
        Source = new Uri("/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Navigation.xaml", UriKind.RelativeOrAbsolute)

    I hope this helps.

    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top