Class RadDesktopAlert
This class represents a Desktop Alert component which can be used to display a small window on the screen to notify the user that an event occurred. The location of the window and the way it appears can be customized.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadDesktopAlert : RadComponent, INotifyPropertyChanged, ICustomTypeDescriptor, IComponent, IDisposable
Constructors
RadDesktopAlert()
RadDesktopAlert(IContainer)
Creates an instance of the Rad
Declaration
public RadDesktopAlert(IContainer container)
Parameters
System. An implementation of the System. |
Properties
AutoClose
Gets a sets a boolean value determining whether the alert popup will be automatically closed after a given amount of time.
Declaration
public bool AutoClose { get; set; }
Property Value
System.
|
AutoCloseDelay
Gets or sets the amount of time in seconds after which the alert will be automatically closed.
Declaration
public int AutoCloseDelay { get; set; }
Property Value
System.
|
AutoSize
Gets or sets a value indicating whether the control is automatically resized by Height to display its entire contents.
Declaration
public virtual bool AutoSize { get; set; }
Property Value
System.
|
ButtonItems
Gets or sets the items collection containing the button items shown at the bottom part of the desktop alert's popup.
Declaration
public RadItemCollection ButtonItems { get; }
Property Value
CanMove
Gets or sets a boolean value determining whether the popup can be moved by dragging the caption grip.
Declaration
public bool CanMove { get; set; }
Property Value
System.
|
CaptionText
Gets or sets the alert's caption text. The caption text is displayed below the moving grip of the alert's popup.
Declaration
public string CaptionText { get; set; }
Property Value
System.
|
ContentImage
Gets or sets the content image of the Rad
Declaration
public Image ContentImage { get; set; }
Property Value
System.
|
ContentText
Gets or sets the text displayed in the alert popup. This text can be additionally HTML formatted to achieve better appearance.
Declaration
public string ContentText { get; set; }
Property Value
System.
|
DpiScaleElement
This element is used for the sole purpose of storing the current DPI scale.
Declaration
public RadElement DpiScaleElement { get; }
Property Value
FadeAnimationFrames
Gets or sets the count of animation frames for the fade animation.
Declaration
public int FadeAnimationFrames { get; set; }
Property Value
System.
|
FadeAnimationSpeed
Gets or sets the interval in milliseconds between two animation frames.
Declaration
public int FadeAnimationSpeed { get; set; }
Property Value
System.
|
FadeAnimationType
Gets or sets a value from the Fade
Declaration
public FadeAnimationType FadeAnimationType { get; set; }
Property Value
FixedSize
Gets or sets an instance of the System.
Declaration
public Size FixedSize { get; set; }
Property Value
System.
|
IsPinned
Gets or sets a boolean value determining whether the alert's popup will be pinned on the screen. If pinned, the alert's popup will not be automatically closed upon mouse click outside its bounds or if the AutoClose property is set to true.
Declaration
public bool IsPinned { get; set; }
Property Value
System.
|
Opacity
Gets or sets the initial opacity of the alert's popup.
Declaration
public float Opacity { get; set; }
Property Value
System.
|
OptionItems
Gets the items collection containing the items added to the options drop-down button of the desktop alert's popup.
Declaration
public RadItemCollection OptionItems { get; }
Property Value
PlaySound
Gets or sets a boolean value determining whether a sound is played when the alert's popup is shown.
Declaration
public bool PlaySound { get; set; }
Property Value
System.
|
Popup
Gets an instance of the Desktop
Declaration
public DesktopAlertPopup Popup { get; }
Property Value
PopupAnimation
Gets or sets a boolean value determining whether the alert's popup will be animated.
Declaration
public bool PopupAnimation { get; set; }
Property Value
System.
|
PopupAnimationDirection
Gets or sets a value determining the direction of the alert's popup animation.
Declaration
public RadDirection PopupAnimationDirection { get; set; }
Property Value
PopupAnimationEasing
Gets or sets the type of the drop-down animation easing.
Declaration
public RadEasingType PopupAnimationEasing { get; set; }
Property Value
PopupAnimationFrames
Gets or sets the count of the alert's drop-down animation frames.
Declaration
public int PopupAnimationFrames { get; set; }
Property Value
System.
|
RightToLeft
Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts.
Declaration
public virtual RightToLeft RightToLeft { get; set; }
Property Value
System. One of the System. |
Exceptions
System. The assigned
value is not one of the System. |
ScreenPosition
Gets or sets a value of the Alert
Declaration
public virtual AlertScreenPosition ScreenPosition { get; set; }
Property Value
ShowCloseButton
Gets or sets a boolean value determining whether the close button is shown.
Declaration
public bool ShowCloseButton { get; set; }
Property Value
System.
|
ShowOptionsButton
Gets or sets a boolean value determining whether the options button is shown.
Declaration
public bool ShowOptionsButton { get; set; }
Property Value
System.
|
ShowPinButton
Gets or sets a boolean value determining whether the pin button is shown.
Declaration
public bool ShowPinButton { get; set; }
Property Value
System.
|
SoundToPlay
Gets or sets the sound which is played when the alert's popup is shown and the PlaySound property is set to true.
Declaration
public SystemSound SoundToPlay { get; set; }
Property Value
System.
|
Methods
CreatePopup()
Returns an instance of the Desktop
Declaration
protected virtual DesktopAlertPopup CreatePopup()
Returns
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
GetLocationModifiedByUser()
Declaration
protected virtual bool GetLocationModifiedByUser()
Returns
System.
|
GetOwnedTreeHandler()
Declaration
public override IComponentTreeHandler GetOwnedTreeHandler()
Returns
Overrides
GetPopupSize()
Declaration
protected virtual Size GetPopupSize()
Returns
System.
|
Hide()
Hides the alert popup from the screen.
Declaration
public void Hide()
OnLocationChangeRequested(Point)
Declaration
protected virtual void OnLocationChangeRequested(Point alertLocation)
Parameters
System.
|
OnNotifyPropertyChanged(String)
Declaration
protected override void OnNotifyPropertyChanged(string propertyName)
Parameters
System.
|
Overrides
OnPopupClosed(Object, RadPopupClosedEventArgs)
Declaration
protected virtual void OnPopupClosed(object sender, RadPopupClosedEventArgs args)
Parameters
System.
|
Rad
|
OnPopupClosing(Object, RadPopupClosingEventArgs)
Declaration
protected virtual void OnPopupClosing(object sender, RadPopupClosingEventArgs args)
Parameters
System.
|
Rad
|
OnPopupOpened(Object, EventArgs)
Declaration
protected virtual void OnPopupOpened(object sender, EventArgs args)
Parameters
System.
|
System.
|
OnPopupOpening(Object, RadPopupOpeningEventArgs)
Declaration
protected virtual void OnPopupOpening(object sender, RadPopupOpeningEventArgs args)
Parameters
System.
|
Rad
|
ResetLocationModifier()
Resets the explicit location modifier. In other words, if the user
has modified the location of the alert's popup, the Desktop
Declaration
public void ResetLocationModifier()
Show()
Displays the alert popup on the screen at the specified location.
Declaration
public void Show()
Events
Closed
Fires when the alert's popup was closed.
Declaration
public event RadPopupClosedEventHandler Closed
Event Type
Closing
Fires when the alert's popup is about to be closed. The closing action can be canceled by modifying the arguments of this event..
Declaration
public event RadPopupClosingEventHandler Closing
Event Type
Opened
Fires when the alert's popup was opened.
Declaration
public event RadPopupOpenedEventHandler Opened
Event Type
Opening
Fires when the alert's popup is about to be opened. The opening action can be canceled by modifying the arguments of this event.
Declaration
public event RadPopupOpeningEventHandler Opening