ClassDesktopAlertManager
This class provides API for managing RadDesktopAlertcomponents.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class DesktopAlertManager
Inheritance: objectDesktopAlertManager
Properties
ActiveScreen
Gets an instance of the Screenclass that represents the screen onto which the DesktopAlertManager positions the alert popups.
Instance
Gets the only instance of the DesktopAlertManager class.
Declaration
public static DesktopAlertManager Instance { get; }
Property Value
Methods
AddAlert(RadDesktopAlert)
Registers an instance of the RadDesktopAlertand displays it on the screen according to its
Declaration
public void AddAlert(RadDesktopAlert alert)
Parameters
alert
ContainsAlert(RadDesktopAlert)
Evaluates whether a given RadDesktopAlert is registered with the DesktopAlertManager.
Declaration
public bool ContainsAlert(RadDesktopAlert alert)
Parameters
alert
The RadDesktopAlert to check.
Returns
GetAlertPopupLocation(RadDesktopAlert)
Gets an instance of the Pointstruct that represents the location of the current alert according to its screen position setting and the currently opened alerts.
Declaration
public Point GetAlertPopupLocation(RadDesktopAlert alert)
Parameters
alert
An instance of the RadDesktopAlert class that represents the alert which position to define.
Returns
The evaluated position in screen coordinates.
GetRegisteredAlerts()
Gets an enumerator for the currently shown dekstop alerts.
Declaration
public IEnumerator<RadDesktopAlert> GetRegisteredAlerts()
Returns
IEnumerator<RadDesktopAlert>
RemoveAlert(RadDesktopAlert)
Unregisters a desktop alert from the manager.
Declaration
public void RemoveAlert(RadDesktopAlert alert)
Parameters
alert
The alert to unregister.
SetActiveScreen(Screen)
Sets the active screen. The active screen is used to calculate the positioning of all desktop alerts.
UpdateAlertsOrder()
Recalculates the location of all opened alerts based on their screen position.
Declaration
public void UpdateAlertsOrder()
Events
AlertAdded
Fires when an instance of the RadDesktopAlert class is registered with this DesktopAlertManager.
Declaration
public event DesktopAlertManagerEventHandler AlertAdded
Event Value
AlertRemoved
Fires when an instance of the RadDesktopAlert class is removed from this DesktopAlertManager.
Declaration
public event DesktopAlertManagerEventHandler AlertRemoved
Event Value