ClassRadDesktopAlertElement
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
RadDesktopAlertElement()
Declaration
public RadDesktopAlertElement()
Fields
CaptionTextProperty
Identifies the CaptionText dependency property.
ContentImageProperty
Identifies the ContentImage dependency property.
Declaration
public static RadProperty ContentImageProperty
Field Value
ContentTextProperty
Identifies the ContentText dependency property.
Properties
AutoSizeHeight
Gets or sets a value indicating whether the control is automatically resized by height to display its entire contents.
Declaration
[Browsable(true)]
public bool AutoSizeHeight { get; set; }
Property Value
ButtonsPanel
Gets an instance of the AlertWindowButtonsPanelclass that represents the panel which holds the buttons added to the RadDesktopAlertcomponent.
Declaration
[Browsable(false)]
public AlertWindowButtonsPanel ButtonsPanel { get; }
Property Value
CaptionElement
Gets an instance of the AlertWindowCaptionElementclass that represents the caption of a RadDesktopAlertcomponent. The caption contains moving grip and system buttons.
Declaration
[Browsable(false)]
public AlertWindowCaptionElement CaptionElement { get; }
Property Value
CaptionText
Gets or sets the text of the RadDesktopAlertElementcaption.
ContentElement
Gets an instance of the AlertWindowContentElementclass that represents the main content element of a RadDesktopAlertcomponent. This element contains an image and a text element.
Declaration
[Browsable(false)]
public AlertWindowContentElement ContentElement { get; }
Property Value
ContentImage
Gets or sets an instance of the Imageclass that represents the alert's content image.
ContentText
Gets or sets the content text of the RadDesktopAlertElement. This is the actual text displayed in a RadDesktopAlert.
ShowCloseButton
Gets or sets a boolean value determining whether the close button is shown.
ShowOptionsButton
Gets or sets a boolean value determining whether the options button is shown.
ShowPinButton
Gets or sets a boolean value determining whether the pin button is shown.
Methods
ArrangeOverride(SizeF)
Positions child elements and determines a size for the RadDesktopAlertElement.
CreateChildElements()
Creates the child elements and adds them to the RadDesktopAlertElement hierarchy.
Declaration
protected override void CreateChildElements()
Overrides
InitializeFields()
Initializes the fields and creates child elements for the RadDesktopAlertElement.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the size in layout required for child elements and determines a size for the RadDesktopAlertElement.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
availableSize
The available size that this element can give to child elements.
Returns
The size that this element determines it needs during layout, based on its calculations of child element sizes.
Overrides
OnNotifyPropertyChanged(string)
Called when a property value changes and updates the visual state of child elements accordingly.
Declaration
protected override void OnNotifyPropertyChanged(string propertyName)
Parameters
propertyName
The name of the property that changed.
Overrides