Hosts a CommandBarStripElement after it is detached from a RadCommandBar, and supports docking the strip back into a command bar.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CommandBarFloatingForm : RadForm, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IComponentTreeHandler, ILayoutHandler, ISupportInitializeNotification, ISupportInitialize, INotifyPropertyChanged, IAnalyticsProvider, ISupportRootUIAutomation
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlFormRadFormControlBaseRadFormCommandBarFloatingForm...
Implements:
Inherited Members
Constructors
Creates a floating form and initializes its item host and title-bar customization button.
public CommandBarFloatingForm()
Fields
Opens the hosted strip's overflow customization menu from the title bar.
protected RadImageButtonElement customizeMenuButtonElement
protected RadDropDownMenu dropDownMenuElement
Hosts the floating strip's items and provides their layout surface.
protected RadCommandBarOverflowPanelHostContol hostControl
Properties
Adds tool-window and no-activation extended styles to the form.
protected override CreateParams CreateParams { get; }
Overrides:
Gets the control that hosts the floating items.
public RadCommandBarOverflowPanelHostContol ItemsHostControl { get; }
Gets or sets the parent control of the RadCommandBar to which this floating strip belongs. Setting a non-null value also copies its BindingContext to the floating form.
public Control ParentControl { get; set; }
Gets or sets the hosted CommandBarStripElement. Assigning a strip redirects its item layout to the floating host and moves its overflow items into that host. When the strip belongs to a command-bar row, the host also adopts the owner's theme, image list, and strip-info holder. Setting it to null clears the form's strip reference and strip-info holder, but does not perform the item-layout or floating-form cleanup performed during docking.
public CommandBarStripElement StripElement { get; set; }
Gets the CommandBarStripInfoHolder that contains information about the floating strip.
public CommandBarStripInfoHolder StripInfoHolder { get; }
Methods
Creates, configures, and adds the control that hosts the floating strip's items. The constructor calls this method; overrides must initialize hostControl for later form operations.
protected virtual void CreateHostControl()
Clean up any resources being used.
protected override void Dispose(bool disposing)
true if managed resources should be disposed; otherwise, false.
Overrides:
Prevents closing the form while a strip is attached; instead hides the strip and the form.
protected override void OnFormClosing(FormClosingEventArgs e)
The form-closing event data.
Overrides:
Moves the floating form while its title bar is being dragged and attempts docking beneath the pointer.
protected override void OnMouseMove(MouseEventArgs e)
The pointer position and button state.
Overrides:
Attempts to dock the floating strip into a command bar found at the specified screen location. Does nothing if ParentControl is not set or the point is not over a command bar.
public void TryDocking(Point screenLocation)
The location in screen coordinates where the strip should try to dock.
Attempts to dock the floating strip in the specified RadCommandBar.
If docking is canceled or commandBar is null, the form remains floating.
Otherwise, the strip is moved to the command bar's first row and the floating form is closed.
ParentControl must be set so the strip's position can be translated back to its parent.
public void TryDocking(RadCommandBar commandBar)
The command bar into which the strip should be docked.
Adjusts the form's minimum width and content-based height while the user resizes it.
protected override void WndProc(ref Message m)
The Windows message being processed.
Overrides: