Class RadTaskDialogControlElement
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI.TaskDialog
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadTaskDialogControlElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
RadTaskDialogControlElement()
Declaration
public RadTaskDialogControlElement()
Properties
Page
Get or sets the RadTaskDialogPage, which is used to display the information and interaction.
Declaration
public RadTaskDialogPage Page { get; set; }
Property Value
|
RadTaskDialogPage
|
PageDefaultWidth
Gets or sets the default width of the page used when SizeToContent is [false]. Note that this property getter considers the PageMinWidth and PageMaxWidth properties.
Declaration
public int PageDefaultWidth { get; set; }
Property Value
|
System.Int32
|
PageMaxWidth
Gets or sets the maximal width of the page used when SizeToContent is [true].
Declaration
public int PageMaxWidth { get; set; }
Property Value
|
System.Int32
|
PageMinWidth
Gets or sets the minimal width of the page used when SizeToContent is [true].
Declaration
public int PageMinWidth { get; set; }
Property Value
|
System.Int32
|
Methods
ArrangeOverride(SizeF)
Arranges the RadTaskDialogControlElement to its final location. The element must call the Arrange method of each of its children.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
|
System.Drawing.SizeF
finalSize
The size that is available for element. |
Returns
|
System.Drawing.SizeF
The rectangle occupied by the element. Usually |
Overrides
Remarks
In this method call to the Arrange method of each child must be made.
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateHorizontalScrollBarElement()
Creates a horizontal scrollbar element.
Declaration
protected virtual RadScrollBarElement CreateHorizontalScrollBarElement()
Returns
|
RadScrollBarElement
The scrollbar. |
CreateVerticalScrollBarElement()
Creates a vertical scrollbar element.
Declaration
protected virtual RadScrollBarElement CreateVerticalScrollBarElement()
Returns
|
RadScrollBarElement
The scrollbar. |
InitializeFields()
Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the space required by the RadTaskDialogControlElement
Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
|
System.Drawing.SizeF
availableSize
The size that is available to the RadTaskDialogControlElement. The available size can be infinity (to take the full size of the element) |
Returns
|
System.Drawing.SizeF
The minimum size required by the element to be completely visible. Cannot be infinity. |
Overrides
Remarks
In this method call to the Measure method of each child must be made.
OnDesiredSizeChanged(SizeF)
Called when the DesiredSize of the page is changed.
Declaration
protected virtual void OnDesiredSizeChanged(SizeF desiredSize)
Parameters
|
System.Drawing.SizeF
desiredSize
The desired size. |
ProcessHelpRequested(HelpEventArgs)
Called when a HelpRequested event is raised in the parent RadTaskDialogControl control.
Declaration
protected virtual bool ProcessHelpRequested(HelpEventArgs hevent)
Parameters
|
System.Windows.Forms.HelpEventArgs
hevent
The event arguments. |
Returns
|
System.Boolean
Whether the page has handled the event. |
ProcessKeyDown(PreviewKeyDownEventArgs)
Called when a ProcessKeyDown event is raised in the parent RadTaskDialogControl control.
Declaration
protected virtual bool ProcessKeyDown(PreviewKeyDownEventArgs e)
Parameters
|
System.Windows.Forms.PreviewKeyDownEventArgs
e
The event arguments. |
Returns
|
System.Boolean
Whether the page has handled the event. |
ShouldArrangeChild(RadElement)
Gets a value indicating, whether a child will be arranged during the ArrangeOverride.
Declaration
protected override bool ShouldArrangeChild(RadElement child)
Parameters
|
RadElement
child
The child. |
Returns
|
System.Boolean
Whether the child will be arranged in ArrangeOverride. |
Overrides
ShouldMeasureChild(RadElement)
Gets a value indicating, whether a child will be measured during the MeasureOverride.
Declaration
protected override bool ShouldMeasureChild(RadElement child)
Parameters
|
RadElement
child
The child. |
Returns
|
System.Boolean
Whether the child will be measured in MeasureOverride. |