ClassRadTaskDialogHeaderLayout
A class that represents the header layout of RadTaskDialogPage
Definition
Namespace:Telerik.WinControls.UI.TaskDialog
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadTaskDialogHeaderLayout : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadTaskDialogHeaderLayout
Implements:
Inherited Members
Constructors
RadTaskDialogHeaderLayout()
Initializes a new instance of the RadTaskDialogHeaderLayout class.
Declaration
public RadTaskDialogHeaderLayout()
RadTaskDialogHeaderLayout(RadTaskDialogIcon, string)
Initializes a new instance of the RadTaskDialogHeaderLayout class.
Declaration
public RadTaskDialogHeaderLayout(RadTaskDialogIcon icon, string text)
Parameters
icon
The icon element.
text
The text.
Properties
BackgroundElement
Gets the element responsible for the background of icon and header text.
Declaration
public LightVisualElement BackgroundElement { get; }
Property Value
ContentArea
Gets the content area, which holds the page text, expander(description) text, progress bar, radio buttons and the command link buttons
Declaration
public RadTaskDialogContentArea ContentArea { get; }
Property Value
HeaderTextElement
Gets the header text element.
Declaration
public LightVisualElement HeaderTextElement { get; }
Property Value
Icon
Gets the icon element.
Declaration
public RadTaskDialogIcon Icon { get; set; }
Property Value
UseEqualHeaderAndIconHeight
Gets or sets a value indicating whether the header text and the icon will have equal heights. If [true] the Icon and HeaderTextElement will have equal height and the text and image will be aligned vertically. If [false] Icon and HeaderTextElement will have unique height, just to fit their content.
Declaration
public bool UseEqualHeaderAndIconHeight { get; set; }
Property Value
UseWideContentArea
Gets or sets a value indicating, whether the content area will occupy the full width of the RadTaskDialogPage. If [false] the ContentArea will respect the width of the Icon. If [true] the ContentArea will occupy all the available width of the page.
Methods
ArrangeOverride(SizeF)
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
CreateBackgroundElement()
Declaration
protected virtual LightVisualElement CreateBackgroundElement()
Returns
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateContentArea()
Declaration
protected virtual RadTaskDialogContentArea CreateContentArea()
Returns
CreateHeaderTextElement()
Declaration
protected virtual TaskDialogLightVisualElement CreateHeaderTextElement()
Returns
CreateIcon()
Declaration
protected virtual RadTaskDialogIcon CreateIcon()
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
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
OnIconChanged()
Declaration
protected virtual void OnIconChanged()
ShouldArrangeChild(RadElement)
Gets a value indicating whether a child will be arranged during the ArrangeOverride(SizeF).
Declaration
protected override bool ShouldArrangeChild(RadElement child)
Parameters
child
The child element to check.
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