Implements non-client window behavior for RadTabbedForm, including tab-caption input and composition layout.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadTabbedFormBehavior : RadNonClientUIBaseFormBehavior<RadTabbedFormControl>, IComponent, IDisposable
Inheritance: objectMarshalByRefObjectComponentFormControlBehaviorThemedFormBehaviorRadNonClientUIBaseFormBehavior<RadTabbedFormControl>RadTabbedFormBehavior...
Implements:
Inherited Members
Constructors
Initializes the behavior without an associated component tree handler.
public RadTabbedFormBehavior()
Initializes the behavior and specifies whether it should create child items for the component tree.
public RadTabbedFormBehavior(IComponentTreeHandler treeHandler, bool shouldHandleCreateChildItems)
The component tree handler whose form behavior is managed.
shouldHandleCreateChildItemsboolWhether this behavior should create the form's child items.
Initializes the behavior for the specified component tree handler.
public RadTabbedFormBehavior(IComponentTreeHandler treeHandler)
The component tree handler whose form behavior is managed.
Properties
Gets the border thickness configured on the tabbed form element.
public override Padding BorderWidth { get; }
Overrides:
Gets the tab control associated with the form, when one has been added.
protected virtual RadTabbedFormControl TabbedFormControl { get; }
Gets the height reserved for the caption and tabs in the non-client frame, including the frame border when maximized.
public override int TopCompositionMargin { get; }
Overrides:
Methods
Switches between composed and non-composed form layouts, preserving the tab control's theme-related settings.
protected override void AdjustBehaviorForCompositionSate()
Overrides:
Mirrors native maximize, restore, and minimize state changes onto the form element and its border.
protected override void AdjustFormElementForFormState(int? formState)
Overrides:
Creates the element that supplies the tabbed form's state and border.
Removes the property-change subscriptions installed on the tab control's caption and tab strip.
protected override void DisposeNonClientUIControlImpls()
Overrides:
Subscribes to caption and tab-strip property changes when the tab control is added to the form.
protected override void Form_ControlAdded(object sender, ControlEventArgs e)
Overrides:
Finds the tab control hosted by the form and synchronizes its composition setting.
protected override void InitializeNonClientUIControl()
Overrides:
Updates the active visual state of the form and its tab control from the native activation message.
Routes a non-client left-button press to the element under the pointer, preserving native handling when no element handles it.
Routes a non-client left-button release to the pressed element and opens the system menu when the form icon is clicked.
Shows the system menu when a right-button release occurs within the tabbed form's caption area.
Selects the tab under the pointer when the designer sends a left-button parent notification.
Updates composition, window styles, and the extended frame when the form's theming mode changes.
protected override void UpdateFormForThemingState(bool showAero)
Overrides:
Applies the current composition setting to the hosted tab control.
protected override void UpdateNCComposition()
Overrides: