ClassDockWindow
Base class for all tool and document windows available per RadDock instance. Implements the IDockWindow interface.
Definition
Namespace:Telerik.WinControls.UI.Docking
Assembly:Telerik.WinControls.RadDock.dll
Syntax:
public abstract class DockWindow : TabPanel, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, INotifyPropertyChanged, IDockWindow
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlTabPanelDockWindow
Derived Classes:
Implements:
Inherited Members
Constructors
Properties
AllowedDockState
Get or set allowed dock states for DockWindow instance
Declaration
[Browsable(false)]
public AllowedDockState AllowedDockState { get; set; }
Property Value
AutoHideSize
Declaration
[Browsable(false)]
public virtual Size AutoHideSize { get; set; }
Property Value
AutoHideTab
Declaration
[Browsable(false)]
public TabStripItem AutoHideTab { get; }
Property Value
BackColor
Declaration
public override Color BackColor { get; set; }
Property Value
Overrides
CloseAction
Gets or sets the action to be used when a Close request occurs for this window.
Declaration
public virtual DockWindowCloseAction CloseAction { get; set; }
Property Value
DefaultCloseAction
Retrieves the default DockWindowCloseAction for this instance. Will be Hide for ToolWindow instances and CloseAndDispose for DocumentWindow instances.
Declaration
protected virtual DockWindowCloseAction DefaultCloseAction { get; }
Property Value
DefaultDockState
Retrieves the default DockState for this instance. Will be Docked for ToolWindow instances and TabbedDocument for DocumentWindow instances.
Declaration
protected virtual DockState DefaultDockState { get; }
Property Value
DefaultFloatingSize
Gets or sets the size to be used when the window is floated for the first time and does not have previous floating state saved.
DockManager
Gets the current RadDock instance this window is associated with.
Declaration
[Browsable(false)]
public virtual RadDock DockManager { get; }
Property Value
Implements
DockState
Gets the current dock state of the window.
Declaration
[Browsable(false)]
public DockState DockState { get; set; }
Property Value
DockTabStrip
Gets the DockTabStrip which hosts this window.
Declaration
[Browsable(false)]
public DockTabStrip DockTabStrip { get; }
Property Value
DockType
Gets the DockType of this instance.
Declaration
[Browsable(false)]
public virtual DockType DockType { get; }
Property Value
DocumentButtons
Gets or sets the visibility of the associated command buttons when the window resides in a DocumentTabStrip instance.
Declaration
public DocumentStripButtons DocumentButtons { get; set; }
Property Value
FloatingParent
Get the parent floating window when the window is in floating mode
Declaration
[Browsable(false)]
public FloatingWindow FloatingParent { get; }
Property Value
IsInFloatingMode
Get the floating status of window
Declaration
[Browsable(false)]
public bool IsInFloatingMode { get; }
Property Value
Name
Gets or sets value representing unique Name of the DockWindow
Declaration
[Browsable(false)]
public string Name { get; set; }
Property Value
Implements
Site
Declaration
public override ISite Site { get; set; }
Property Value
Overrides
ToolCaptionButtons
Gets or sets the visibility of the associated command buttons when the window resides in a ToolTabStrip instance.
Declaration
public ToolStripCaptionButtons ToolCaptionButtons { get; set; }
Property Value
Methods
Close()
Asks the current DockManager instance (if any) to close the window.
Declaration
public void Close()
Dispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
disposing
Overrides
DockTo(DockWindow, DockPosition)
Asks the current DockManager instance (if any) to dock the window to the specified target, using the desired position.
Declaration
public void DockTo(DockWindow target, DockPosition position)
Parameters
target
position
EnsureVisible()
Ensures that the window is currently visible on its hosting DockTabStrip.
Declaration
public void EnsureVisible()
EnsureVisible(bool)
Ensures that the window is currently visible on its hosting DockTabStrip.
Declaration
public void EnsureVisible(bool suspendShowAutoHide)
Parameters
suspendShowAutoHide
Indicates whether showing autohide windows should be suspended.
OnClosed(DockWindowEventArgs)
Called by the owning RadDock instance when the window has been successfully closed. Depending on the current CloseAction, the window will be either hidden, removed or both plus disposed when entering this method.
Declaration
protected virtual void OnClosed(DockWindowEventArgs e)
Parameters
e
OnClosing(DockWindowCancelEventArgs)
Called by the owning RadDock instance when this window is about to close. Allows specific DockWindow implementations to optionally cancel the operation and/or perform additional actions.
Declaration
protected virtual void OnClosing(DockWindowCancelEventArgs e)
Parameters
e
OnEnter(EventArgs)
Declaration
protected override void OnEnter(EventArgs e)
Parameters
e
Overrides
OnGotFocus(EventArgs)
Declaration
protected override void OnGotFocus(EventArgs e)
Parameters
e
Overrides
OnImageChanged(EventArgs)
Notifies for a change in the Image and SvgImage members of this panel.
Declaration
protected override void OnImageChanged(EventArgs e)
Parameters
e
Overrides
OnMouseDown(MouseEventArgs)
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
e
Overrides
OnNameChanged(string)
Notifies the owning RadDock instance for a change in the Name value.
Declaration
protected virtual void OnNameChanged(string oldName)
Parameters
oldName
OnTextChanged(EventArgs)
Declaration
protected override void OnTextChanged(EventArgs e)
Parameters
e
Overrides
OnToolTipTextChanged(EventArgs)
Declaration
protected override void OnToolTipTextChanged(EventArgs e)
Parameters
e
Overrides
Show()
Display the ToolWindow if was previously hidden.
Declaration
public void Show()
UpdateOnTextChanged()
Updates all associated UI - such as TabItems, Captions, etc. upon TextChanged event.
Declaration
protected virtual void UpdateOnTextChanged()
WndProc(ref Message)
Provides special handling for the WM_SETFOCUS notification.
Declaration
protected override void WndProc(ref Message m)
Parameters
m
Overrides