FloatingWindow
Represents a popup form that is used to host floating DockWindow instances.
Definition
Namespace:Telerik.WinControls.UI.Docking
Assembly:Telerik.WinControls.RadDock.dll
Syntax:
public class FloatingWindow : DockPopupForm, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IComponentTreeHandler, ILayoutHandler, ISupportInitializeNotification, ISupportInitialize, INotifyPropertyChanged, IAnalyticsProvider, ISupportRootUIAutomation
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlFormRadFormControlBaseRadFormDockPopupFormFloatingWindow...
Implements:
Inherited Members
Constructors
Initializes a new instance of the FloatingWindow class with the specified dock manager.
public FloatingWindow(RadDock dockManager)
The RadDock instance that will own and manage this floating window.
Fields
Defines the default size for floating windows.
public static readonly Size DefaultFloatingSize
Properties
Gets the required creation parameters when the control handle is created.
protected override CreateParams CreateParams { get; }
A CreateParams object containing the required creation parameters when the handle is created.
Overrides:
Gets the RadSplitContainer instance that is the root of the hierarchy of DockWindows inside this FloatingWindow.
public RadSplitContainer DockContainer { get; }
The RadSplitContainer that hosts the docked windows.
Gets or sets a value indicating whether this window should snap to edges while being moved.
[Browsable(false)]
public bool SnapOnMove { get; set; }
true if snapping while moving is enabled; otherwise, false.
Gets or sets a value indicating whether this window should snap to edges while being resized.
[Browsable(false)]
public bool SnapOnResize { get; set; }
true if snapping while resizing is enabled; otherwise, false.
Gets or sets the distance in pixels between window edges at which snapping occurs.
[Browsable(false)]
public int SnapThreshold { get; set; }
The distance threshold in pixels that triggers the snapping behavior.
Gets or sets a value indicating whether this window should snap to other windows when moved or resized.
[Browsable(false)]
public bool SnapToOthers { get; set; }
true if snapping to other windows is enabled; otherwise, false.
Gets or sets a value indicating whether this window should snap to the screen's edges when moved or resized.
[Browsable(false)]
public bool SnapToScreen { get; set; }
true if snapping to screen edges is enabled; otherwise, false.
Gets or sets a value indicating whether the floating form should be shown in the task bar and behave like a normal form, or it should be kept as a child form of the form which owns the RadDock.
public bool Standalone { get; set; }
true if the window should appear in the taskbar as a standalone window; otherwise, false to keep it
as a child window of the form containing the RadDock.
Gets or sets the theme class name for this floating window.
public override string ThemeClassName { get; set; }
The fully qualified name of the FloatingWindow type.
Overrides:
This override enables separate theming for floating windows distinct from standard RadForm controls.
Methods
Determines whether this control defines the theme for a given element.
public override bool ControlDefinesThemeForElement(RadElement element)
The element to check for theme definition.
Returns:true if the element is a RadFormTitleBarElement; otherwise, the result of the base implementation.
Overrides:
This override enables separate styling of the title bar in floating windows.
Releases the unmanaged resources used by the FloatingWindow and optionally releases the managed resources.
protected override void Dispose(bool disposing)
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Overrides:
Signals the object that initialization is complete.
public override void EndInit()
Overrides:
This method is called at the end of initialization and updates the visibility of the window.
Gets the target bounds when the window snaps to another one.
public virtual Rectangle GetSnappedBounds(Rectangle desired, ResizeDirection direction, bool resize)
The original window bounds.
directionResizeDirectionThe direction in which the window is being resized/moved.
resizebool[true] if this is a resize operation, [false] otherwise.
Returns:The bounds of the window after snapping.
Raises the Activated event and manages z-ordering of all popup forms.
Raises the Closing event.
protected override void OnClosing(CancelEventArgs e)
A CancelEventArgs that contains the event data.
Overrides:
This method cancels the default closing behavior and delegates the closing process to the dock manager.
Notifies the control that its theme has changed.
protected override void OnThemeChanged()
Overrides:
This method delegates the theme change event to all nested ToolTabStrip instances.
Updates the enabled state of the close button based on the contained dock windows.
public void UpdateCloseButton()
Processes Windows messages sent to the control.
protected override void WndProc(ref Message m)
The Windows Message to process.
Overrides: