skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

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.

Inheritance
System.Object
DisposableObject
RadObject
RadComponent
RadDesktopAlert
Inherited Members
RadComponent.ToString()
RadComponent.GetService(Type)
RadComponent.CanRaiseEvents
RadComponent.Container
RadComponent.DesignMode
RadComponent.IsDesignMode
RadComponent.Site
RadComponent.ThemeName
RadObject.BindingContextProperty
RadObject.RadType
RadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)
RadObject.ClearPropertyStore()
RadObject.SuspendPropertyNotifications()
RadObject.ResumePropertyNotifications()
RadObject.GetPropertyValue(RadProperty)
RadObject.SetDefaultValueOverride(RadProperty, Object)
RadObject.SetValueAtDesignTime(RadProperty, Object)
RadObject.GetValue(RadProperty)
RadObject.SetValue(RadProperty, Object)
RadObject.ResetValue(RadProperty)
RadObject.ResetLocalValue(RadProperty)
RadObject.ResetValue(RadProperty, ValueResetFlags)
RadObject.UpdateValue(RadProperty)
RadObject.GetValueSource(RadProperty)
RadObject.GetRegisteredRadProperty(String)
RadObject.UpdateValueCore(RadPropertyValue)
RadObject.SetValueCore(RadPropertyValue, Object, Object, ValueSource)
RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)
RadObject.GetDefaultValue(RadPropertyValue, Object)
RadObject.CoerceValue(RadPropertyValue, Object)
RadObject.ShouldSerializeProperty(PropertyDescriptor)
RadObject.ShouldSerializeProperty(RadProperty)
RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)
RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)
RadObject.UnbindProperty(RadProperty)
RadObject.AddStylePropertySetting(IPropertySetting)
RadObject.RemoveStylePropertySetting(IPropertySetting)
RadObject.RemoveStylePropertySetting(RadProperty)
RadObject.GetInheritedValue(RadProperty)
RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)
RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)
RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)
RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)
RadObject.IsPropertyCancelable(RadPropertyMetadata)
RadObject.PropertyValues
RadObject.PropertyFilter
RadObject.RadObjectType
RadObject.BindingContext
RadObject.PropertyChanged
RadObject.RadPropertyChanged
RadObject.RadPropertyChanging
RadObject.ShouldSerializePropertyHandler
DisposableObject.GetBitState(Int64)
DisposableObject.SetBitState(Int64, Boolean)
DisposableObject.OnBitStateChanged(Int64, Boolean, Boolean)
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.PerformDispose(Boolean)
DisposableObject.DisposeUnmanagedResources()
DisposableObject.BitState
DisposableObject.Events
DisposableObject.IsDisposing
DisposableObject.IsDisposed
DisposableObject.Disposed
DisposableObject.Disposing
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll

Syntax

public class RadDesktopAlert : RadComponent, INotifyPropertyChanged, ICustomTypeDescriptor, IComponent, IDisposable

Constructors

RadDesktopAlert()

Creates an instance of the RadDesktopAlert class.

Declaration
public RadDesktopAlert()

RadDesktopAlert(IContainer)

Creates an instance of the RadDesktopAlert class.

Declaration
public RadDesktopAlert(IContainer container)
Parameters
System.ComponentModel.IContainer container

An implementation of the System.ComponentModel.IContainer interface that holds this instance.

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.Boolean

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.Int32

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.Boolean

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
RadItemCollection

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.Boolean

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.String

ContentImage

Gets or sets the content image of the RadDesktopAlert.

Declaration
public Image ContentImage { get; set; }
Property Value
System.Drawing.Image

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.String

DpiScaleElement

This element is used for the sole purpose of storing the current DPI scale.

Declaration
public RadElement DpiScaleElement { get; }
Property Value
RadElement

FadeAnimationFrames

Gets or sets the count of animation frames for the fade animation.

Declaration
public int FadeAnimationFrames { get; set; }
Property Value
System.Int32

FadeAnimationSpeed

Gets or sets the interval in milliseconds between two animation frames.

Declaration
public int FadeAnimationSpeed { get; set; }
Property Value
System.Int32

FadeAnimationType

Gets or sets a value from the FadeAnimationType enumerator that determines the type of fade animation performed when the alert's popup is opened/closed.

Declaration
public FadeAnimationType FadeAnimationType { get; set; }
Property Value
FadeAnimationType

FixedSize

Gets or sets an instance of the System.Drawing.Sizestruct which defines fixed size for the alert's popup. The default value is an empty size. In this case the popup adjusts its size according to its content. Otherwise the value of this property is considered.

Declaration
public Size FixedSize { get; set; }
Property Value
System.Drawing.Size

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.Boolean

Opacity

Gets or sets the initial opacity of the alert's popup.

Declaration
public float Opacity { get; set; }
Property Value
System.Single

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
RadItemCollection

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.Boolean

Popup

Gets an instance of the DesktopAlertPopupclass that represents the popup of the desktop alert.

Declaration
public DesktopAlertPopup Popup { get; }
Property Value
DesktopAlertPopup

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.Boolean

PopupAnimationDirection

Gets or sets a value determining the direction of the alert's popup animation.

Declaration
public RadDirection PopupAnimationDirection { get; set; }
Property Value
RadDirection

PopupAnimationEasing

Gets or sets the type of the drop-down animation easing.

Declaration
public RadEasingType PopupAnimationEasing { get; set; }
Property Value
RadEasingType

PopupAnimationFrames

Gets or sets the count of the alert's drop-down animation frames.

Declaration
public int PopupAnimationFrames { get; set; }
Property Value
System.Int32

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.Windows.Forms.RightToLeft

One of the System.Windows.Forms.RightToLeft values. The default is System.Windows.Forms.RightToLeft.Inherit.

Exceptions
System.ComponentModel.InvalidEnumArgumentException

The assigned value is not one of the System.Windows.Forms.RightToLeft values.

ScreenPosition

Gets or sets a value of the AlertScreenPosition enum which defines the position of the alert popup on the working area of the active screen.

Declaration
public virtual AlertScreenPosition ScreenPosition { get; set; }
Property Value
AlertScreenPosition

ShowCloseButton

Gets or sets a boolean value determining whether the close button is shown.

Declaration
public bool ShowCloseButton { get; set; }
Property Value
System.Boolean

ShowOptionsButton

Gets or sets a boolean value determining whether the options button is shown.

Declaration
public bool ShowOptionsButton { get; set; }
Property Value
System.Boolean

ShowPinButton

Gets or sets a boolean value determining whether the pin button is shown.

Declaration
public bool ShowPinButton { get; set; }
Property Value
System.Boolean

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.Media.SystemSound

Methods

CreatePopup()

Returns an instance of the DesktopAlertPopup class that represents the alert's popup

Declaration
protected virtual DesktopAlertPopup CreatePopup()
Returns
DesktopAlertPopup

DisposeManagedResources()

Declaration
protected override void DisposeManagedResources()
Overrides
RadComponent.DisposeManagedResources()

GetLocationModifiedByUser()

Declaration
protected virtual bool GetLocationModifiedByUser()
Returns
System.Boolean

GetOwnedTreeHandler()

Declaration
public override IComponentTreeHandler GetOwnedTreeHandler()
Returns
IComponentTreeHandler

Overrides
RadComponent.GetOwnedTreeHandler()

GetPopupSize()

Declaration
protected virtual Size GetPopupSize()
Returns
System.Drawing.Size

Hide()

Hides the alert popup from the screen.

Declaration
public void Hide()

OnLocationChangeRequested(Point)

Declaration
protected virtual void OnLocationChangeRequested(Point alertLocation)
Parameters
System.Drawing.Point alertLocation

OnNotifyPropertyChanged(String)

Declaration
protected override void OnNotifyPropertyChanged(string propertyName)
Parameters
System.String propertyName

Overrides
RadObject.OnNotifyPropertyChanged(String)

OnPopupClosed(Object, RadPopupClosedEventArgs)

Declaration
protected virtual void OnPopupClosed(object sender, RadPopupClosedEventArgs args)
Parameters
System.Object sender

RadPopupClosedEventArgs args

OnPopupClosing(Object, RadPopupClosingEventArgs)

Declaration
protected virtual void OnPopupClosing(object sender, RadPopupClosingEventArgs args)
Parameters
System.Object sender

RadPopupClosingEventArgs args

OnPopupOpened(Object, EventArgs)

Declaration
protected virtual void OnPopupOpened(object sender, EventArgs args)
Parameters
System.Object sender

System.EventArgs args

OnPopupOpening(Object, RadPopupOpeningEventArgs)

Declaration
protected virtual void OnPopupOpening(object sender, RadPopupOpeningEventArgs args)
Parameters
System.Object sender

RadPopupOpeningEventArgs args

ResetLocationModifier()

Resets the explicit location modifier. In other words, if the user has modified the location of the alert's popup, the DesktopAlertManager will not consider it when rearranging the visible alerts. This method will reset the explicit location modifier and thus the DesktopAlertManager will continue managing the location of the alert according to its location settings.

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
RadPopupClosedEventHandler

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
RadPopupClosingEventHandler

Opened

Fires when the alert's popup was opened.

Declaration
public event RadPopupOpenedEventHandler Opened
Event Type
RadPopupOpenedEventHandler

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
Event Type
RadPopupOpeningEventHandler

Extension Methods

CommonExtensions.ClearIfNoBindingAndSet(RadObject, RadProperty)
DispatcherExtensions.CheckAccess(RadObject)
CommonExtensions.SetIfDifferent(RadObject, RadProperty, Object)
CommonExtensions.ClearIfSet(RadObject, RadProperty)
CommonExtensions.IsLocalValueSet(RadObject, RadProperty)
DispatcherExtensions.CheckAccess(RadObject)
DispatcherExtensions.CheckAccess(RadObject)
DispatcherExtensions.CheckAccess(RadObject)
SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.