ClassRadTaskDialogExpander
A class that represents the expander of RadTaskDialogPage
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadTaskDialogExpander : LightVisualButtonElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IRadTaskDialogControl
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementLightVisualButtonElementRadTaskDialogExpander
Implements:
Inherited Members
Constructors
RadTaskDialogExpander()
Initializes a new instance of the RadTaskDialogExpander class.
Declaration
public RadTaskDialogExpander()
RadTaskDialogExpander(string)
Initializes a new instance of the RadTaskDialogExpander class.
Declaration
public RadTaskDialogExpander(string text)
Parameters
text
The description text of the expander.
Fields
ExpandedProperty
Declaration
public static readonly RadProperty ExpandedProperty
Field Value
Properties
BoundPage
Gets the bound RadTaskDialogPage.
Declaration
public RadTaskDialogPage BoundPage { get; }
Property Value
Implements
CollapsedButtonText
Gets or sets the button text when the button is collapsed. Note that when this text is set to an Empty or null, the default text from the localization provider will be displayed.
ElementsStack
Gets the horizontal stack with ExpandElement and TextElement
Declaration
public StackLayoutPanel ElementsStack { get; }
Property Value
ExpandElement
Gets the expand element(the circle button).
Declaration
public LightVisualElement ExpandElement { get; }
Property Value
Expanded
Gets or sets a value indicating whether the button is in expanded state. In expanded state the RadTaskDialogPage shows its description.
ExpandedButtonText
Gets or sets the button text when the button is expanded. Note that when this text is set to an Empty or null, the default text from the localization provider will be displayed.
Position
Gets or sets the position of the expander text.
Declaration
public RadTaskDialogExpanderPosition Position { get; set; }
Property Value
Text
Gets or sets the description text of the expander.
Declaration
public override string Text { get; set; }
Property Value
Overrides
TextElement
Gets the text element.
Declaration
public LightVisualElement TextElement { get; }
Property Value
Methods
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateElementsStack()
Declaration
protected virtual StackLayoutPanel CreateElementsStack()
Returns
CreateExpandElement()
Declaration
protected virtual TaskDialogExpanderButtonElement CreateExpandElement()
Returns
CreateTextElement()
Declaration
protected virtual TaskDialogExpanderButtonElement CreateTextElement()
Returns
InitializeFields()
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
Declaration
protected override void InitializeFields()
Overrides
OnClick(EventArgs)
Raises the Click event.
Declaration
protected override void OnClick(EventArgs e)
Parameters
e
Overrides
OnExpandedChanged()
Declaration
protected virtual void OnExpandedChanged()
ToggleExpandCollapse()
Toggles the expander. If the button is expanded it will be collapsed and vice-versa.
Declaration
public virtual void ToggleExpandCollapse()
UpdateVisibility()
Declaration
protected virtual void UpdateVisibility()
Events
ExpandedChanged
An event that is fired when the expander is expanded or collapsed.