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?
1 Answer, 1 is accepted
0
Sia
Telerik team
answered on 10 Jan 2018, 11:43 AM
Hello,
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());
this.bottomRightManager.ShowAlert(alert);
where:
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: