skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class FloatingWindow

Represents a popup form that is used to host floating DockWindow instances.

Inheritance
System.Object
RadFormControlBase
RadForm
DockPopupForm
FloatingWindow
Inherited Members
DockPopupForm.OnHandleDestroyed(EventArgs)
DockPopupForm.OnHandleCreated(EventArgs)
DockPopupForm.OnClosed(EventArgs)
DockPopupForm.DockManager
RadForm.ScrollToControl(Control)
RadForm.ProcessCaptureChangeRequested(RadElement, Boolean)
RadForm.InitializeFormBehavior()
RadForm.SetIconPrimitiveVisibility(Boolean)
RadForm.Text
RadForm.FormElement
RadForm.IconScaling
RadForm.AllowTheming
RadForm.ShowIcon
RadFormControlBase.newBounds
RadFormControlBase.oldDpi
RadFormControlBase.currentDpi
RadFormControlBase.isBehaviorPrepared
RadFormControlBase.controlIsInitializingRootComponent
RadFormControlBase.isPainting
RadFormControlBase.Construct()
RadFormControlBase.GetUseNewLayout()
RadFormControlBase.OnCreateControl()
RadFormControlBase.LoadElementTree()
RadFormControlBase.LoadElementTree(Size)
RadFormControlBase.OnLoad(Size)
RadFormControlBase.OnPaint(PaintEventArgs)
RadFormControlBase.OnPaintBackground(PaintEventArgs)
RadFormControlBase.ProcessDialogKey(Keys)
RadFormControlBase.UpdateDefaultButton()
RadFormControlBase.ShouldSerializeBackColor()
RadFormControlBase.OnBackColorChanged(EventArgs)
RadFormControlBase.ShouldSerializeForeColor()
RadFormControlBase.OnForeColorChanged(EventArgs)
RadFormControlBase.ShouldSerializeFont()
RadFormControlBase.OnFontChanged(EventArgs)
RadFormControlBase.OnParentChanged(EventArgs)
RadFormControlBase.ShouldSerializeProperty(RadProperty)
RadFormControlBase.ResetFormBehavior(Boolean)
RadFormControlBase.PerformDesignModeLocationCorrection(Message)
RadFormControlBase.CallBaseWndProc(Message)
RadFormControlBase.IComponentTreeHandler.GetAmbientPropertyValue(RadProperty)
RadFormControlBase.IComponentTreeHandler.OnAmbientPropertyChanged(RadProperty)
RadFormControlBase.IComponentTreeHandler.OnFocusRequested(RadElement)
RadFormControlBase.IComponentTreeHandler.OnCaptureChangeRequested(RadElement, Boolean)
RadFormControlBase.ProcessFocusRequested(RadElement)
RadFormControlBase.OnNotifyPropertyChanged(String)
RadFormControlBase.OnNotifyPropertyChanged(PropertyChangedEventArgs)
RadFormControlBase.CreateChildItems(RadElement)
RadFormControlBase.CreateRootElement()
RadFormControlBase.OnThemeNameChanged(ThemeNameChangedEventArgs)
RadFormControlBase.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)
RadFormControlBase.OnToolTipTextNeeded(Object, ToolTipTextNeededEventArgs)
RadFormControlBase.OnVisibleChanged(EventArgs)
RadFormControlBase.IComponentTreeHandler.InitializeRootElement(RootRadElement)
RadFormControlBase.IComponentTreeHandler.CreateRootElement()
RadFormControlBase.IComponentTreeHandler.CreateChildItems(RadElement)
RadFormControlBase.IComponentTreeHandler.CallOnThemeNameChanged(ThemeNameChangedEventArgs)
RadFormControlBase.OnAutoSizeChanged(EventArgs)
RadFormControlBase.OnLayout(LayoutEventArgs)
RadFormControlBase.CreateHandle()
RadFormControlBase.SetClientSizeCore(Int32, Int32)
RadFormControlBase.SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)
RadFormControlBase.GetPreferredSize(Size)
RadFormControlBase.InvalidateIfNotSuspended()
RadFormControlBase.IComponentTreeHandler.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)
RadFormControlBase.IComponentTreeHandler.CallOnMouseCaptureChanged(EventArgs)
RadFormControlBase.IComponentTreeHandler.CallOnToolTipTextNeeded(Object, ToolTipTextNeededEventArgs)
RadFormControlBase.InvalidateElement(RadElement)
RadFormControlBase.InvalidateElement(RadElement, Rectangle)
RadFormControlBase.AddInvalidatedRect(Rectangle)
RadFormControlBase.SuspendUpdate()
RadFormControlBase.ResumeUpdate()
RadFormControlBase.ResumeUpdate(Boolean)
RadFormControlBase.RegisterHostedControl(RadHostItem)
RadFormControlBase.UnregisterHostedControl(RadHostItem, Boolean)
RadFormControlBase.OnScreenTipNeeded(Object, ScreenTipNeededEventArgs)
RadFormControlBase.IComponentTreeHandler.CallOnScreenTipNeeded(Object, ScreenTipNeededEventArgs)
RadFormControlBase.ControlThemeChangedCallback()
RadFormControlBase.IComponentTreeHandler.GetShowFocusCues()
RadFormControlBase.InvokeLayoutCallback(LayoutCallback)
RadFormControlBase.BeginInit()
RadFormControlBase.HandleDpiChanged()
RadFormControlBase.ScaleControl(SizeF, BoundsSpecified)
RadFormControlBase.SuspendDpiScaling()
RadFormControlBase.ResumeDpiScaling()
RadFormControlBase.OnWm_SettingChange(Message)
RadFormControlBase.IComponentTreeHandler.get_Name()
RadFormControlBase.IComponentTreeHandler.set_Name(String)
RadFormControlBase.Site
RadFormControlBase.AnalyticsName
RadFormControlBase.EnableAnalytics
RadFormControlBase.IsLoaded
RadFormControlBase.MaximumSize
RadFormControlBase.MinimumSize
RadFormControlBase.FormBorderStyle
RadFormControlBase.FormBehavior
RadFormControlBase.Behavior
RadFormControlBase.SmallImageList
RadFormControlBase.FocusedElement
RadFormControlBase.AllowShowFocusCues
RadFormControlBase.ShowItemToolTips
RadFormControlBase.CommandBindings
RadFormControlBase.EnableKeyMap
RadFormControlBase.WindowsSettings
RadFormControlBase.BackColor
RadFormControlBase.ForeColor
RadFormControlBase.Font
RadFormControlBase.IsDesignMode
RadFormControlBase.ElementTree
RadFormControlBase.IComponentTreeHandler.Behavior
RadFormControlBase.IComponentTreeHandler.ThemeClassName
RadFormControlBase.ThemeName
RadFormControlBase.RootElement
RadFormControlBase.IsUpdateSuspended
RadFormControlBase.IComponentTreeHandler.SmallImageList
RadFormControlBase.ImageList
RadFormControlBase.SmallImageScalingSize
RadFormControlBase.ImageScalingSize
RadFormControlBase.IComponentTreeHandler.Initializing
RadFormControlBase.LayoutManager
RadFormControlBase.IsInitialized
RadFormControlBase.IsPerformingScale
RadFormControlBase.HasOwnToolbar
RadFormControlBase.IsDpiScalingSuspended
RadFormControlBase.ThemeNameChanged
RadFormControlBase.ToolTipTextNeeded
RadFormControlBase.ScreenTipNeeded
RadFormControlBase.Initialized
RadFormControlBase.PropertyChanged
RadFormControlBase.WindowsThemeChanged
Namespace: Telerik.WinControls.UI.Docking
Assembly: Telerik.WinControls.RadDock.dll

Syntax

public class FloatingWindow : DockPopupForm, IComponentTreeHandler, ILayoutHandler, ISupportInitializeNotification, ISupportInitialize, INotifyPropertyChanged, IAnalyticsProvider

Constructors

FloatingWindow()

Initializes a new instance of the FloatingWindow class. This method supports internal RadDock infrastructure and should not be called directly from your code.

Declaration
public FloatingWindow()

FloatingWindow(RadDock)

Initializes a new instance of the FloatingWindow class with the specified dock manager.

Declaration
public FloatingWindow(RadDock dockManager)
Parameters
RadDock dockManager

The RadDock instance that will own and manage this floating window.

Fields

DefaultFloatingSize

Defines the default size for floating windows.

Declaration
public static readonly Size DefaultFloatingSize
Field Value
System.Drawing.Size

Properties

CreateParams

Gets the required creation parameters when the control handle is created.

Declaration
protected override CreateParams CreateParams { get; }
Property Value
System.Windows.Forms.CreateParams

A CreateParams object containing the required creation parameters when the handle is created.

Overrides
DockPopupForm.CreateParams

DockContainer

Gets the RadSplitContainer instance that is the root of the hierarchy of DockWindows inside this FloatingWindow.

Declaration
public RadSplitContainer DockContainer { get; }
Property Value
RadSplitContainer

The RadSplitContainer that hosts the docked windows.

SnapOnMove

Gets or sets a value indicating whether this window should snap to edges while being moved.

Declaration
public bool SnapOnMove { get; set; }
Property Value
System.Boolean

true if snapping while moving is enabled; otherwise, false.

SnapOnResize

Gets or sets a value indicating whether this window should snap to edges while being resized.

Declaration
public bool SnapOnResize { get; set; }
Property Value
System.Boolean

true if snapping while resizing is enabled; otherwise, false.

SnapThreshold

Gets or sets the distance in pixels between window edges at which snapping occurs.

Declaration
public int SnapThreshold { get; set; }
Property Value
System.Int32

The distance threshold in pixels that triggers the snapping behavior.

SnapToOthers

Gets or sets a value indicating whether this window should snap to other windows when moved or resized.

Declaration
public bool SnapToOthers { get; set; }
Property Value
System.Boolean

true if snapping to other windows is enabled; otherwise, false.

SnapToScreen

Gets or sets a value indicating whether this window should snap to the screen's edges when moved or resized.

Declaration
public bool SnapToScreen { get; set; }
Property Value
System.Boolean

true if snapping to screen edges is enabled; otherwise, false.

Standalone

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.

Declaration
public bool Standalone { get; set; }
Property Value
System.Boolean

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.

ThemeClassName

Gets or sets the theme class name for this floating window.

Declaration
public override string ThemeClassName { get; set; }
Property Value
System.String

The fully qualified name of the FloatingWindow type.

Overrides
RadForm.ThemeClassName
Remarks

This override enables separate theming for floating windows distinct from standard RadForm controls.

Methods

ControlDefinesThemeForElement(RadElement)

Determines whether this control defines the theme for a given element.

Declaration
public override bool ControlDefinesThemeForElement(RadElement element)
Parameters
RadElement element

The element to check for theme definition.

Returns
System.Boolean

true if the element is a RadFormTitleBarElement; otherwise, the result of the base implementation.

Overrides
RadFormControlBase.ControlDefinesThemeForElement(RadElement)
Remarks

This override enables separate styling of the title bar in floating windows.

Dispose(Boolean)

Releases the unmanaged resources used by the FloatingWindow and optionally releases the managed resources.

Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean disposing

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Overrides
DockPopupForm.Dispose(Boolean)

EndInit()

Signals the object that initialization is complete.

Declaration
public override void EndInit()
Overrides
RadForm.EndInit()
Remarks

This method is called at the end of initialization and updates the visibility of the window.

GetSnappedBounds(Rectangle, ResizeDirection, Boolean)

Gets the target bounds when the window snaps to another one.

Declaration
public virtual Rectangle GetSnappedBounds(Rectangle desired, ResizeDirection direction, bool resize)
Parameters
System.Drawing.Rectangle desired

The original window bounds.

ResizeDirection direction

The direction in which the window is being resized/moved.

System.Boolean resize

[true] if this is a resize operation, [false] otherwise.

Returns
System.Drawing.Rectangle

The bounds of the window after snapping.

OnActivated(EventArgs)

Raises the System.Windows.Forms.Form.Activated event and manages z-ordering of all popup forms.

Declaration
protected override void OnActivated(EventArgs e)
Parameters
System.EventArgs e

An System.EventArgs that contains the event data.

Remarks

This override provides support for proper z-ordering of all popup forms belonging to the owning form.

OnClosing(CancelEventArgs)

Raises the System.Windows.Forms.Form.Closing event.

Declaration
protected override void OnClosing(CancelEventArgs e)
Parameters
System.ComponentModel.CancelEventArgs e

A System.ComponentModel.CancelEventArgs that contains the event data.

Remarks

This method cancels the default closing behavior and delegates the closing process to the dock manager.

OnLoad(EventArgs)

Raises the System.Windows.Forms.Form.Load event.

Declaration
protected override void OnLoad(EventArgs e)
Parameters
System.EventArgs e

An System.EventArgs that contains the event data.

Overrides
DockPopupForm.OnLoad(EventArgs)

OnShown(EventArgs)

Raises the System.Windows.Forms.Form.Shown event.

Declaration
protected override void OnShown(EventArgs e)
Parameters
System.EventArgs e

An System.EventArgs that contains the event data.

Overrides
RadFormControlBase.OnShown(EventArgs)

OnThemeChanged()

Notifies the control that its theme has changed.

Declaration
protected override void OnThemeChanged()
Overrides
RadFormControlBase.OnThemeChanged()
Remarks

This method delegates the theme change event to all nested ToolTabStrip instances.

UpdateCloseButton()

Updates the enabled state of the close button based on the contained dock windows.

Declaration
public void UpdateCloseButton()

WndProc(ref Message)

Declaration
protected override void WndProc(ref Message m)
Parameters
System.Windows.Forms.Message m

Overrides
RadFormControlBase.WndProc(ref Message)

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.