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; }
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 or sets the class name string that ThemeResolutionService will use to find the themes registered for the control.
public override string ThemeClassName { get; set; }
Overrides:
By default the return value is RadControl's type FullName; Some controls like drop down menu has different ThemeClassName depending on the runtime usage of the control.
Methods
This method determines whether the IPopupControl can be closed. Used in the PopupManager class to prevent the IPopupControl from closing in specific occasions.
public override bool CanClosePopup(RadPopupCloseReason reason)
The reason why the IPopupControl is closed.
Returns:True if the IPopupControl can be closed, otherwise false.
Overrides:
Checks whether the element's theme is defined by the control.
public override bool ControlDefinesThemeForElement(RadElement element)
The element to should be checked.
Returns:true if the control defines theme for this element, false otherwise.
Overrides:
If true is returned the ThemeResolutionService would not not set any theme to the element to avoid duplicating the style settings of the element.
protected override void CreateChildItems(RadElement parent)
Overrides:
Calculates the horizontal popup location based on the alignmentRectangle.
This method uses the HorizontalPopupAlignment property setting.
Executes when a key is pressed.
public override bool OnKeyDown(Keys keyData)
An instance of the Keys struct which contains the key information.
Returns:A boolean value that determines whether the IPopupControl processes the message.
Overrides:
Raises the PropertyChanged event
protected override void OnNotifyPropertyChanged(string propertyName)
The name of the property
Overrides:
Fires when the popup is about to open.
protected override void OnPopupOpening(CancelEventArgs args)
A CancelEventArgs object that contains information about the event
Overrides:
Restarts the auto-close timer.
public void ResumeAutoClose()
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
Overrides:
Stops the auto-close timer.
public void SuspendAutoClose()