Table of Contents

Class ExDockPanel

Namespace
ExControls
Assembly
ExControls.dll

Tool panel of an ExDockManager (like a tool window in Visual Studio or Rider): a container for the content with a stable Key for the saved layout and a Text shown in the caption, on its tab and on the auto-hide strip. The manager places it into a zone, a floating window or hides it; the panel only hosts the content (usually one control with Fill).

public class ExDockPanel : ContainerControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IThemeable
Inheritance
ExDockPanel
Implements
Inherited Members
Extension Methods

Constructors

ExDockPanel()

Initializes a new instance of the ExDockPanel class.

public ExDockPanel()

ExDockPanel(string, string)

Initializes a new instance of the ExDockPanel class with a key and a caption.

public ExDockPanel(string key, string text)

Parameters

key string

stable key of the panel in the saved layout

text string

caption of the panel

Properties

CanAutoHide

Gets or sets whether the panel can be collapsed to the auto-hide strip.

[Browsable(false)]
public bool CanAutoHide { get; set; }

Property Value

bool

CanClose

Gets or sets whether the user can hide the panel (close button and the menu item); the application can always hide it by HidePanel(ExDockPanel).

[Browsable(false)]
public bool CanClose { get; set; }

Property Value

bool

CanFloat

Gets or sets whether the panel can be moved to a floating window (when AllowFloating).

[Browsable(false)]
public bool CanFloat { get; set; }

Property Value

bool

Image

Gets or sets the image shown before the caption on the tab and on the auto-hide strip (16 logical pixels; it is not scaled - the application supplies an image for the DPI).

[Browsable(false)]
public Image? Image { get; set; }

Property Value

Image

IsShown

Gets whether the panel is shown (docked, collapsed to the strip or floating), i.e. not Hidden.

[Browsable(false)]
public bool IsShown { get; }

Property Value

bool

Key

Gets or sets the stable key of the panel in the saved layout (SaveLayout()); unique in the manager. When empty, Name is used.

[Browsable(false)]
public string Key { get; set; }

Property Value

string

Manager

Gets the manager of the panel; null until AddPanel(ExDockPanel, ExDockSide).

[Browsable(false)]
public ExDockManager? Manager { get; }

Property Value

ExDockManager

Side

Gets the side of the panel: the side of its zone, or for a floating or hidden panel the side it returns to.

[Browsable(false)]
public ExDockSide Side { get; }

Property Value

ExDockSide

State

Gets the state of the panel.

[Browsable(false)]
public ExDockState State { get; }

Property Value

ExDockState

Text

Gets or sets the caption of the panel (caption bar, tab, auto-hide strip).

[Browsable(false)]
[AllowNull]
public override string Text { get; set; }

Property Value

string

Methods

ApplyTheme(ExTheme)

Sets the colors and appearance of the control by the theme.

public virtual void ApplyTheme(ExTheme theme)

Parameters

theme ExTheme

OnTextChanged(EventArgs)

Raises the TextChanged event.

protected override void OnTextChanged(EventArgs e)

Parameters

e EventArgs

An EventArgs that contains the event data.