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
Initializes a new instance of the RadTaskDialogHeaderLayout class.
public RadTaskDialogHeaderLayout()
Initializes a new instance of the RadTaskDialogHeaderLayout class.
public RadTaskDialogHeaderLayout(RadTaskDialogIcon icon, string text)
The icon element.
textstringThe text.
Properties
Gets the element responsible for the background of icon and header text.
public LightVisualElement BackgroundElement { get; }
Gets the content area, which holds the page text, expander(description) text, progress bar, radio buttons and the command link buttons
public RadTaskDialogContentArea ContentArea { get; }
Gets the header text element.
public LightVisualElement HeaderTextElement { get; }
Gets the icon element.
public RadTaskDialogIcon Icon { get; set; }
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.
public bool UseEqualHeaderAndIconHeight { get; set; }
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.
public bool UseWideContentArea { get; set; }
Methods
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
protected virtual TaskDialogLightVisualElement CreateHeaderTextElement()
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
protected override void InitializeFields()
Overrides:
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
protected virtual void OnIconChanged()
Gets a value indicating whether a child will be arranged during the ArrangeOverride(SizeF).
protected override bool ShouldArrangeChild(RadElement child)
The child element to check.
Returns:Whether the child will be arranged in ArrangeOverride.
Overrides:
Gets a value indicating, whether a child will be measured during the MeasureOverride.
protected override bool ShouldMeasureChild(RadElement child)
The child.
Returns:Whether the child will be measured in MeasureOverride.
Overrides: