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:
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;
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:
RadDesktopAlertManager manager = new RadDesktopAlertManager(); manager.ShowAlert(alert);
Dim manager As New RadDesktopAlertManager() manager.ShowAlert(alert)