Class
RadDesktopAlertManager

Provides management for desktop alerts, allowing registration, display, animation, and positioning of alerts on the screen. The class supports multiple constructors for customizing the alerts' screen position, offset, and distance between alerts. It includes animation functionalities for showing and hiding alerts, as well as customizing those animations' duration and behavior. The manager facilitates adding and removing alerts, controlling their visibility, and ensuring they are displayed in an organized manner according to user-defined settings. This class also manages alert positioning, enables attachment to specific windows for context-sensitive display, and provides functionality to detach alerts from those windows, restoring default behavior. The built-in event handling for alert windows allows for seamless interaction and management of alert lifecycle events.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

cs-api-definition
public class RadDesktopAlertManager

Inheritance: objectRadDesktopAlertManager

Constructors

RadDesktopAlertManager()

Initializes a new instance of the RadDesktopAlertManager class.

Declaration

cs-api-definition
public RadDesktopAlertManager()

RadDesktopAlertManager(AlertScreenPosition)

Initializes a new instance of the RadDesktopAlertManager class.

Declaration

cs-api-definition
public RadDesktopAlertManager(AlertScreenPosition screenPosition)

Parameters

screenPosition

AlertScreenPosition

The position on the screen used to display the alerts on.

RadDesktopAlertManager(AlertScreenPosition, Point)

Initializes a new instance of the RadDesktopAlertManager class.

Declaration

cs-api-definition
public RadDesktopAlertManager(AlertScreenPosition screenPosition, Point screenPositionOffset)

Parameters

screenPosition

AlertScreenPosition

The position on the screen used to display the alerts on.

screenPositionOffset

Point

Offset of the used screen position.

RadDesktopAlertManager(AlertScreenPosition, Point, double)

Initializes a new instance of the RadDesktopAlertManager class.

Declaration

cs-api-definition
public RadDesktopAlertManager(AlertScreenPosition screenPosition, Point screenPositionOffset, double alertsDistance)

Parameters

screenPosition

AlertScreenPosition

The position on the screen used to display the alerts on.

screenPositionOffset

Point

Offset of the used screen position.

alertsDistance

double

Distance between the opened alerts.

RadDesktopAlertManager(AlertScreenPosition, double)

Initializes a new instance of the RadDesktopAlertManager class.

Declaration

cs-api-definition
public RadDesktopAlertManager(AlertScreenPosition screenPosition, double alertsDistance)

Parameters

screenPosition

AlertScreenPosition

The position on the screen used to display the alerts on.

alertsDistance

double

Distance between the opened alerts.

Properties

AlertsDistance

Gets or sets the distance between the opened alerts.

Declaration

cs-api-definition
public double AlertsDistance { get; set; }

Property Value

double

AlertsReorderAnimationDuration

Gets or sets duration in milliseconds of the animation used for updating the order of all instances of RadDesktopAlert.

Declaration

cs-api-definition
public int AlertsReorderAnimationDuration { get; set; }

Property Value

int

HideAnimation

Gets or sets the animation used for hiding all instances of RadDesktopAlert.

Declaration

cs-api-definition
public RadAnimation HideAnimation { get; set; }

Property Value

RadAnimation

ScreenPosition

Gets the position on the screen used to display all instances of RadDesktopAlert.

Declaration

cs-api-definition
public AlertScreenPosition ScreenPosition { get; }

Property Value

AlertScreenPosition

ShowAnimation

Gets or sets the animation used for showing all instances of RadDesktopAlert.

Declaration

cs-api-definition
public RadAnimation ShowAnimation { get; set; }

Property Value

RadAnimation

Methods

Attach(DependencyObject)

Attaches the current instance of RadDesktopAlertManager to the Window of the passed element. When attached to Window, the manager shows alerts on the current screen where the Window is located.

Declaration

cs-api-definition
public void Attach(DependencyObject element)

Parameters

element

DependencyObject

CloseAlert(RadDesktopAlert, bool)

Unregisters a desktop alert from the manager and close it.

Declaration

cs-api-definition
public void CloseAlert(RadDesktopAlert alert, bool useAnimations = true)

Parameters

alert

RadDesktopAlert

The alert to close.

useAnimations

bool

Indicates whether the Close animation should be used. By default is True.

CloseAllAlerts(bool)

Unregisters all desktop alerts from the manager and close them.

Declaration

cs-api-definition
public void CloseAllAlerts(bool useAnimations = true)

Parameters

useAnimations

bool

Indicates whether the Close animation should be used. By default is True.

ContainsAlert(RadDesktopAlert)

Evaluates whether a given RadDesktopAlert is registered with the RadDesktopAlertManager.

Declaration

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

Parameters

alert

RadDesktopAlert

The RadDesktopAlert to check.

Returns

bool

True if RadDesktopAlert is present; otherwise, false.

Detach()

Detaches the current instance of RadDesktopAlertManager from Window. All alerts will be shown on the main monitor.

Declaration

cs-api-definition
public void Detach()

GetAllAlerts()

Gets a collection of all registered RadDesktopAlert instances with the RadDesktopAlertManager.

Declaration

cs-api-definition
public IEnumerable<RadDesktopAlert> GetAllAlerts()

Returns

IEnumerable<RadDesktopAlert>

ShowAlert(DesktopAlertParameters, bool)

Registers an instance of the RadDesktopAlert from the provided DesktopAlertParameters and displays it on the screen.

Declaration

cs-api-definition
public void ShowAlert(DesktopAlertParameters parameters, bool useAnimations = true)

Parameters

parameters

DesktopAlertParameters

The alert to show.

useAnimations

bool

Indicates whether the Show animation should be used. By default is True.

ShowAlert(RadDesktopAlert, bool)

Registers an instance of the RadDesktopAlert and displays it on the screen.

Declaration

cs-api-definition
public void ShowAlert(RadDesktopAlert alert, bool useAnimations = true)

Parameters

alert

RadDesktopAlert

The alert to show.

useAnimations

bool

Indicates whether the Show animation should be used. By default is True.