New to Telerik UI for WinFormsStart a free 30-day trial

This class provides API for managing RadDesktopAlertcomponents.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class DesktopAlertManager

Inheritance: objectDesktopAlertManager

Properties

Gets an instance of the Screenclass that represents the screen onto which the DesktopAlertManager positions the alert popups.

C#
public Screen ActiveScreen { get; }

Gets the only instance of the DesktopAlertManager class.

C#
public static DesktopAlertManager Instance { get; }

Methods

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

C#
public void AddAlert(RadDesktopAlert alert)
Parameters:alertRadDesktopAlert

Evaluates whether a given RadDesktopAlert is registered with the DesktopAlertManager.

C#
public bool ContainsAlert(RadDesktopAlert alert)
Parameters:alertRadDesktopAlert

The RadDesktopAlert to check.

Returns:

bool

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.

C#
public Point GetAlertPopupLocation(RadDesktopAlert alert)
Parameters:alertRadDesktopAlert

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

Returns:

Point

The evaluated position in screen coordinates.

Gets an enumerator for the currently shown dekstop alerts.

C#
public IEnumerator<RadDesktopAlert> GetRegisteredAlerts()
Returns:

IEnumerator<RadDesktopAlert>

Unregisters a desktop alert from the manager.

C#
public void RemoveAlert(RadDesktopAlert alert)
Parameters:alertRadDesktopAlert

The alert to unregister.

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

C#
public void SetActiveScreen(Screen activeScreen)
Parameters:activeScreenScreen

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

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

C#
public void UpdateAlertsOrder()

Events

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

C#
public event DesktopAlertManagerEventHandler AlertAdded

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

C#
public event DesktopAlertManagerEventHandler AlertRemoved