Class
DesktopAlertManager

This class provides API for managing RadDesktopAlertcomponents.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
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.

Declaration

cs-api-definition
public Screen ActiveScreen { get; }

Property Value

Screen

Instance

Gets the only instance of the DesktopAlertManager class.

Declaration

cs-api-definition
public static DesktopAlertManager Instance { get; }

Property Value

DesktopAlertManager

Methods

AddAlert(RadDesktopAlert)

Registers an instance of the RadDesktopAlertand displays it on the screen according to its

Declaration

cs-api-definition
public void AddAlert(RadDesktopAlert alert)

Parameters

alert

RadDesktopAlert

ContainsAlert(RadDesktopAlert)

Evaluates whether a given RadDesktopAlert is registered with the DesktopAlertManager.

Declaration

cs-api-definition
public bool ContainsAlert(RadDesktopAlert alert)

Parameters

alert

RadDesktopAlert

The RadDesktopAlert to check.

Returns

bool

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

cs-api-definition
public Point GetAlertPopupLocation(RadDesktopAlert alert)

Parameters

alert

RadDesktopAlert

An instance of the RadDesktopAlert class that represents the alert which position to define.

Returns

Point

The evaluated position in screen coordinates.

GetRegisteredAlerts()

Gets an enumerator for the currently shown dekstop alerts.

Declaration

cs-api-definition
public IEnumerator<RadDesktopAlert> GetRegisteredAlerts()

Returns

IEnumerator<RadDesktopAlert>

RemoveAlert(RadDesktopAlert)

Unregisters a desktop alert from the manager.

Declaration

cs-api-definition
public void RemoveAlert(RadDesktopAlert alert)

Parameters

alert

RadDesktopAlert

The alert to unregister.

SetActiveScreen(Screen)

Sets the active screen. The active screen is used to calculate the positioning of all desktop alerts.

Declaration

cs-api-definition
public void SetActiveScreen(Screen activeScreen)

Parameters

activeScreen

Screen

An instance of the Screen class that is the active screen to set.

UpdateAlertsOrder()

Recalculates the location of all opened alerts based on their screen position.

Declaration

cs-api-definition
public void UpdateAlertsOrder()

Events

AlertAdded

Fires when an instance of the RadDesktopAlert class is registered with this DesktopAlertManager.

Declaration

cs-api-definition
public event DesktopAlertManagerEventHandler AlertAdded

Event Value

DesktopAlertManagerEventHandler

AlertRemoved

Fires when an instance of the RadDesktopAlert class is removed from this DesktopAlertManager.

Declaration

cs-api-definition
public event DesktopAlertManagerEventHandler AlertRemoved

Event Value

DesktopAlertManagerEventHandler