This class represents the main element of a RadDesktopAlertwindow.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadDesktopAlertElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadDesktopAlertElement...
Implements:
Inherited Members
Constructors
public RadDesktopAlertElement()
Fields
Identifies the CaptionText dependency property.
public static RadProperty CaptionTextProperty
Identifies the ContentImage dependency property.
public static RadProperty ContentImageProperty
Identifies the ContentText dependency property.
public static RadProperty ContentTextProperty
Properties
Gets or sets a value indicating whether the control is automatically resized by height to display its entire contents.
[Browsable(true)]
public bool AutoSizeHeight { get; set; }
Gets an instance of the AlertWindowButtonsPanelclass that represents the panel which holds the buttons added to the RadDesktopAlertcomponent.
[Browsable(false)]
public AlertWindowButtonsPanel ButtonsPanel { get; }
Gets an instance of the AlertWindowCaptionElementclass that represents the caption of a RadDesktopAlertcomponent. The caption contains moving grip and system buttons.
[Browsable(false)]
public AlertWindowCaptionElement CaptionElement { get; }
Gets or sets the text of the RadDesktopAlertElementcaption.
public string CaptionText { get; set; }
Gets an instance of the AlertWindowContentElementclass that represents the main content element of a RadDesktopAlertcomponent. This element contains an image and a text element.
[Browsable(false)]
public AlertWindowContentElement ContentElement { get; }
Gets or sets an instance of the Imageclass that represents the alert's content image.
public Image ContentImage { get; set; }
Gets or sets the content text of the RadDesktopAlertElement. This is the actual text displayed in a RadDesktopAlert.
public string ContentText { get; set; }
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; }
Methods
Positions child elements and determines a size for the RadDesktopAlertElement.
Creates the child elements and adds them to the RadDesktopAlertElement hierarchy.
protected override void CreateChildElements()
Overrides:
Initializes the fields and creates child elements for the RadDesktopAlertElement.
protected override void InitializeFields()
Overrides:
Measures the size in layout required for child elements and determines a size for the RadDesktopAlertElement.
Called when a property value changes and updates the visual state of child elements accordingly.
protected override void OnNotifyPropertyChanged(string propertyName)
The name of the property that changed.
Overrides: