This topic will walk you through the creating of RadDesktopAlert.
In order to use RadDesktopAlert in your project you have to add references to the following three assemblies:
You can include the control in your page by either dragging it from the toolbox in Visual Studio, or manually creating the control. Below is an example of how to create RadDesktopAlert in code behind:
[C#] Creating RadDesktopAlert
var alert = new RadDesktopAlert(); alert.Header = "MAIL NOTIFICATION"; alert.Content = "Hello, Here are two things that we noticed today on our daily meeting."; alert.ShowDuration = 3000;
[VB] Creating RadDesktopAlert
Dim alert = New RadDesktopAlert() alert.Header = "MAIL NOTIFICATION" alert.Content = "Hello, Here are two things that we noticed today on our daily meeting." alert.ShowDuration = 3000
RadDesktopAlert is designed to work with RadDesktopAlertManager. If just placed in XAML it won't be completely functional.
In order to visualize it, a new instance of RadDesktopAlertManager should be created and the already declared above RadDesktopAlert should be passed as a parameter to its ShowAlert method:
[C#] Showing RadDesktopAlert
RadDesktopAlertManager manager = new RadDesktopAlertManager(); manager.ShowAlert(alert);
[VB] Showing RadDesktopAlert
Dim manager As New RadDesktopAlertManager() manager.ShowAlert(alert)