Class RadDesktopAlertElement
This class represents the main element of a RadDesktopAlertwindow.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadDesktopAlertElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
RadDesktopAlertElement()
Declaration
public RadDesktopAlertElement()
Fields
CaptionTextProperty
Identifies the CaptionText dependency property.
Declaration
public static RadProperty CaptionTextProperty
Field Value
|
RadProperty
|
ContentImageProperty
Identifies the ContentImage dependency property.
Declaration
public static RadProperty ContentImageProperty
Field Value
|
RadProperty
|
ContentTextProperty
Identifies the ContentText dependency property.
Declaration
public static RadProperty ContentTextProperty
Field Value
|
RadProperty
|
Properties
AutoSizeHeight
Gets or sets a value indicating whether the control is automatically resized by height to display its entire contents.
Declaration
public bool AutoSizeHeight { get; set; }
Property Value
|
System.Boolean
|
ButtonsPanel
Gets an instance of the AlertWindowButtonsPanelclass that represents the panel which holds the buttons added to the RadDesktopAlertcomponent.
Declaration
public AlertWindowButtonsPanel ButtonsPanel { get; }
Property Value
|
AlertWindowButtonsPanel
|
CaptionElement
Gets an instance of the AlertWindowCaptionElementclass that represents the caption of a RadDesktopAlertcomponent. The caption contains moving grip and system buttons.
Declaration
public AlertWindowCaptionElement CaptionElement { get; }
Property Value
|
AlertWindowCaptionElement
|
CaptionText
Gets or sets the text of the RadDesktopAlertElementcaption.
Declaration
public string CaptionText { get; set; }
Property Value
|
System.String
|
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
public AlertWindowContentElement ContentElement { get; }
Property Value
|
AlertWindowContentElement
|
ContentImage
Gets or sets an instance of the System.Drawing.Imageclass that represents the alert's content image.
Declaration
public Image ContentImage { get; set; }
Property Value
|
System.Drawing.Image
|
ContentText
Gets or sets the content text of the RadDesktopAlertElement. This is the actual text displayed in a RadDesktopAlert.
Declaration
public string ContentText { get; set; }
Property Value
|
System.String
|
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
|
Methods
ArrangeOverride(SizeF)
Positions child elements and determines a size for the RadDesktopAlertElement.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
|
System.Drawing.SizeF
finalSize
The final area within the parent that this element should use to arrange itself and its children. |
Returns
|
System.Drawing.SizeF
The actual size used. |
Overrides
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
|
System.Drawing.SizeF
availableSize
The available size that this element can give to child elements. |
Returns
|
System.Drawing.SizeF
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
|
System.String
propertyName
The name of the property that changed. |