DesktopAlertPopup
This class represents the popup of a RadDesktopAlertcomponent. This popup hosts an instance of the RadDesktopAlertElementclass which represents the element hierarchy of the alert.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class DesktopAlertPopup : RadPopupControlBase, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, IPopupControl
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadPopupControlBaseDesktopAlertPopup...
Implements:
Inherited Members
Constructors
Creates an instance of the DesktopAlertPopupclass.
public DesktopAlertPopup(RadDesktopAlert owner)
An instance of the RadDesktopAlertclass that represents the owner alert of the DesktopAlertPopup
Creates an instance of the DesktopAlertPopupclass with specified owner.
public DesktopAlertPopup(RadElement element, RadDesktopAlert owner)
An instance of the RadElementclass that represents the owner element of the DesktopAlertPopup
ownerRadDesktopAlertAn instance of the RadDesktopAlertclass that represents the owner alert of the DesktopAlertPopup
Properties
Gets an instance of the RadDesktopAlertElementwhich represents the main alert element.
public RadDesktopAlertElement AlertElement { get; }
Gets a sets a boolean value determining whether the alert popup will be automatically closed after a given amount of time.
public bool AutoClose { get; set; }
Gets or sets the amount of time in seconds after which the alert will be automatically closed.
public int AutoCloseDelay { get; set; }
Gets an instance of the RadItemCollectionthat holds the buttons items added to the alert component.
public RadItemCollection ButtonItems { get; }
Gets or sets a boolean value determining whether the popup can be moved by dragging it by the grip.
public bool CanMove { get; set; }
Gets or sets the caption text of the alert.
public virtual string CaptionText { get; set; }
Gets or sets the content text of the alert.
public virtual string ContentText { get; set; }
Gets or sets a boolean value determining whether the popup is pinned on the screen.
public bool IsPinned { get; set; }
Gets the items displayed by the caption's options drop-down button.
public RadItemCollection OptionItems { get; }
Gets or sets a boolean value determining whether the close button is shown.
public bool ShowCloseButton { get; set; }
Gets or sets a boolean value determining whether the options button is shown.
public bool ShowOptionsButton { get; set; }
Gets or sets a boolean value determining whether the pin button is shown.
public bool ShowPinButton { get; set; }
Gets the type name used to resolve this popup's theme.
public override string ThemeClassName { get; set; }
Overrides:
Methods
Prevents the popup manager from closing the alert through its close-eligibility check.
public override bool CanClosePopup(RadPopupCloseReason reason)
The reason the popup might be closed.
Returns:Always false.
Overrides:
Reports the popup as defining the theme for standard button, drop-down button, and toggle button elements; delegates other elements to the base implementation.
public override bool ControlDefinesThemeForElement(RadElement element)
The element whose theme ownership is being checked.
Returns:true for button elements handled by the popup or when the base implementation claims the element.
Overrides:
Creates the alert element, connects its close and pin buttons, and adds it to the popup.
protected override void CreateChildItems(RadElement parent)
The parent element that hosts the alert element.
Overrides:
Calculates the popup's horizontal position from its configured alignment and the target rectangle.
Leaves Enter, Escape, and Back unprocessed by this popup; delegates other keys to the base implementation.
Stores the mouse-down location used to determine whether a subsequent drag began on the caption grip.
protected override void OnMouseDown(MouseEventArgs e)
The mouse event data.
Overrides:
Suspends auto-close and temporarily raises the opacity while the pointer is over an active popup.
Resumes auto-close and restores the opacity saved when the pointer entered an active popup.
Moves the popup while the left mouse button is held after a drag begins on the caption grip. The first drag move marks its location as user-modified and updates the manager's alert positions.
protected override void OnMouseMove(MouseEventArgs e)
The mouse event data.
Overrides:
Resets the auto-close suspension count and evaluates the auto-close timer as the popup begins opening.
protected override void OnPopupOpening(CancelEventArgs args)
The event data for the opening operation.
Overrides:
Restarts the auto-close timer.
public void ResumeAutoClose()
Applies the requested bounds, using the element tree's desired size for a loaded control whose bounds are changing.
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
The requested left coordinate.
yintThe requested top coordinate.
widthintThe requested width.
heightintThe requested height.
specifiedBoundsSpecifiedThe bounds components to apply.
Overrides:
Applies DPI scaling and popup bounds, configures rounded corners, shows the popup without activation, and updates Aero effects when supported.
Stops the auto-close timer.
public void SuspendAutoClose()