Hosts the tab strip and system buttons in the extended title bar of a RadTabbedFormControl.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadTabbedFormControlCaption : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadTabbedFormControlCaption...
Implements:
Inherited Members
Constructors
public RadTabbedFormControlCaption()
Fields
Identifies the property that controls the caption's height.
public static RadProperty CaptionHeightProperty
Properties
Gets or sets the height of the extended title bar.
[Browsable(true)]
public int CaptionHeight { get; set; }
Gets the Close button
public RadButtonElement CloseButton { get; }
Gets the Help button.
public RadButtonElement HelpButton { get; }
Gets the Maximize button
public RadButtonElement MaximizeButton { get; }
Gets the Minimize button
public RadButtonElement MinimizeButton { get; }
Gets the element holding the system buttons.
public StackLayoutElement SystemButtons { get; }
Gets the RadTabbedFormControlTabsElement.
public RadTabbedFormControlTabsElement TabbedFormControlTabsElement { get; }
Methods
Creates the tab strip and the caption's system buttons.
protected override void CreateChildElements()
Overrides:
Configures the caption element for horizontal stretching and custom child layout.
protected override void InitializeFields()
Overrides:
Toggles the owner form between maximized and normal when the maximize button is visible.
protected override void OnDoubleClick(EventArgs e)
The double-click event data.
Overrides:
Raises MaximizeRestore and toggles the owner form between maximized and normal.
Records the pointer location used to detect a subsequent caption drag.
protected override void OnMouseDown(MouseEventArgs e)
The mouse input data.
Overrides:
Starts moving the owner form or opens its system menu when the pointer is dragged over the caption area.
protected override void OnMouseMove(MouseEventArgs e)
The mouse input data.
Overrides:
Determines whether the child participates in the caption's layout.
protected override bool ShouldArrangeChild(RadElement child)
The child element to check.
Returns:false for the tab strip and system-button container, which are arranged separately.
Overrides:
Excludes the tab strip and system-button container because this element lays them out explicitly.
protected virtual bool ShouldLayoutChild(RadElement child)
The child element to check.
Returns:false for the explicitly arranged children; otherwise, true.
Determines whether the child participates in the caption's layout.
protected override bool ShouldMeasureChild(RadElement child)
The child element to check.
Returns:false for the tab strip and system-button container, which are measured separately.
Overrides:
Events
Fires when the close button is clicked
public event TitleBarSystemEventHandler Close
Fires when the maximize button is clicked
public event TitleBarSystemEventHandler MaximizeRestore
Fires when the minimize button is clicked
public event TitleBarSystemEventHandler Minimize