Implements the non-client layout, input, and window-state behavior for a RadToolbarForm.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadToolbarFormBehavior : RadNonClientUIBaseFormBehavior<RadToolbarFormControl>, IComponent, IDisposable
Inheritance: objectMarshalByRefObjectComponentFormControlBehaviorThemedFormBehaviorRadNonClientUIBaseFormBehavior<RadToolbarFormControl>RadToolbarFormBehavior...
Implements:
Inherited Members
Constructors
Initializes the behavior without a component-tree handler; a handler can be supplied through another constructor.
public RadToolbarFormBehavior()
Creates an instance of the RadToolbarFormBehavior class.
public RadToolbarFormBehavior(IComponentTreeHandler treeHandler, bool shouldHandleCreateChildItems)
The associated IComponentTreeHandler implementation.
shouldHandleCreateChildItemsboolDetermines whether the behavior handles the CreateChildItems call.
Creates an instance of the RadToolbarFormBehavior class.
public RadToolbarFormBehavior(IComponentTreeHandler treeHandler)
The IComponentTreeHandler implementation which this behavior is associated with.
Properties
Gets the border thickness defined by the toolbar form's visual element.
public override Padding BorderWidth { get; }
Overrides:
Gets whether this behavior enables composition effects. It always returns false.
public bool CompositionEffectsEnabled { get; }
Gets the non-client toolbar control associated with this behavior, or null before it is initialized.
protected virtual RadToolbarFormControl ToolbarFormControl { get; }
Gets the top margin reserved for the extended caption area, including the frame border when maximized. When the toolbar control is not available, the system caption and frame-border heights are used.
public override int TopCompositionMargin { get; }
Overrides:
Methods
Makes no composition-dependent changes to the form element; this behavior reports composition effects as disabled.
protected override void AdjustBehaviorForCompositionSate()
Overrides:
Updates the form element's window-state property for a native size-state notification and shows its border when restored or minimized.
protected override void AdjustFormElementForFormState(int? formState)
A Win32 SIZE_* state such as SIZE_MAXIMIZED, SIZE_RESTORED, or SIZE_MINIMIZED. Other values leave the element unchanged.
Overrides:
Creates the visual element that supplies the toolbar form's non-client border and window-state visuals.
Updates maximized-form padding, synchronizes the toolbar window-state property when the state changes, and resets the form region.
Finds the toolbar control among the form's direct child controls and assigns it as the non-client UI control.
protected override void InitializeNonClientUIControl()
Overrides:
Updates the toolbar and form active-state properties when the form receives an activation message.
protected override void OnWMActivateCore(ref Message m)
The WM_ACTIVATE message whose activation code determines the active state.
Overrides:
Routes a non-client left-button press to the form's visual tree and skips the base window procedure when the hit element is enabled and is not the form element.
protected override void OnWmNCLeftMouseButtonDown(ref Message m)
The Windows message containing the non-client pointer location.
Overrides:
Performs no additional processing for a non-client left-button release.
protected override void OnWmNCLeftMouseButtonUp(ref Message m)
The Windows message for the non-client button release.
Overrides:
Forwards a non-client right-button release to the form and posts a system-menu message when the message Y coordinate is positive and no greater than TopCompositionMargin.
protected override void OnWMNCRightButtonUp(ref Message m)
The Windows message containing the non-client pointer location.
Overrides:
Does not apply a separate Aero-theme transition because this behavior disables base non-client theming.
protected override void UpdateFormForThemingState(bool showAero)
Whether the base behavior requested Aero theming; this implementation does not apply it.
Overrides:
Does not propagate DWM composition changes to the toolbar control.
protected override void UpdateNCComposition()
Overrides: