ClassRadTaskDialogControlElement
Definition
Namespace:Telerik.WinControls.UI.TaskDialog
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadTaskDialogControlElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadTaskDialogControlElement
Implements:
Inherited Members
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
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.
PageMaxWidth
Gets or sets the maximal width of the page used when SizeToContent is [true].
PageMinWidth
Gets or sets the minimal width of the page used when SizeToContent is [true].
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
finalSize
The size that is available for element.
Returns
The rectangle occupied by the element. Usually finalSize. Should you return different size, the Layout system will restart measuring and rearranging the items. That could lead to infinite recursion.
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
The scrollbar.
CreateVerticalScrollBarElement()
Creates a vertical scrollbar element.
Declaration
protected virtual RadScrollBarElement CreateVerticalScrollBarElement()
Returns
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
availableSize
The size that is available to the RadTaskDialogControlElement. The available size can be infinity (to take the full size of the element)
Returns
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
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
hevent
The event arguments.
Returns
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
e
The event arguments.
Returns
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
child
The child.
Returns
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
child
The child.
Returns
Whether the child will be measured in MeasureOverride.
Overrides