Blazorise Dock Layout API

Explore the Blazorise Dock Layout API reference for parameters, events, methods, and related types.

For examples and usage guidance, see the Dock Layout documentation.

API

Parameters

DockLayout

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the panes and content to be rendered inside the dock layout.
PaneBorderedtruebool

Defines whether non-document panes should render a visible border.
SplitterThickness6double

Defines the thickness, in pixels, of the splitters between dock panes.
StatenullDockLayoutState

Defines the mutable state used for docking, resizing, active tabs, and pane visibility. The same state can be saved with GetState and restored with DockLayoutState). Declarative values initialize this state and are reapplied by ResetState. In-place changes to the assigned instance are not detected; apply them with DockLayoutState) or follow them with Refresh.

DockPane

ParameterDefaultType
AcceptPaneDropstruebool

Defines whether other panes can be dropped onto or around this pane.
AutoHidefalsebool

Initially auto-hides the pane content while keeping the pane available on its docked side.
AutoHideabletruebool

Allows the pane header to show a pin action that toggles auto-hide behavior.
Caption—string

Defines the caption used by tabbed dock groups.
ChildContentnullRenderFragment

Specifies the content to be rendered inside this DockPane.
Closabletruebool

Allows the pane header to show a close action that hides the pane.
Collapsedfalsebool

Initially collapses the pane content while keeping the pane in the dock layout.
MaxSize—string

Defines the maximum pane size when size constraints are applied.
MinSize—string

Defines the minimum pane size when size constraints are applied.
Movabletruebool

Allows the pane to be moved to another dock position by dragging its header.
Name—string

Identifies the pane inside the parent DockLayout and acts as the stable key used by persisted DockLayoutState values.
PanePositionDockPanePosition.LeftDockPanePosition

Defines where the pane is initially docked inside the layout.
Possible values:LeftRightTopBottomCenter
Resizablefalsebool

Shows a splitter marker that indicates the pane can participate in resize behavior.
RoleToolDockPaneRole

Defines whether this pane behaves as a tool pane or as a document pane.
Possible values:ToolDocument
ShowTabtruebool

Defines whether this pane should display a tab when it is hosted inside a tab group.
ShowTabCloseButtonfalsebool

Defines whether a close button should be shown when this pane is rendered as a document tab.
Size—string

Defines the initial pane size, such as 280px, 18rem, or 25%.
TabPositionDockPaneTabPosition.DefaultDockPaneTabPosition

Defines where tabs should be displayed when this pane is hosted inside a tab group.
Possible values:DefaultTopBottom
Visibletruebool

Initially shows or hides the pane in the dock layout.

DockPaneHeader

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the header content to be rendered inside this DockPaneHeader.

DockPaneBody

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the body content to be rendered inside this DockPaneBody.

DockPaneFooter

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the footer content to be rendered inside this DockPaneFooter.

DockContent

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the content to be rendered inside this DockContent.

DockSplit

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the split child content.
OrientationOrientation.HorizontalOrientation

Defines the initial split orientation.
Possible values:HorizontalVertical
Ratio0.5double

Defines the initial first child ratio.

DockTabs

ParameterDefaultType
ActivePane—string

Defines the initially active pane name.
ChildContentnullRenderFragment

Specifies the tab child content.

Events

DockLayout

EventType
StateChangedEventCallback<DockLayoutState>

Occurs after the docking state changes.

DockPane

EventType
ClosingFunc<DockPaneClosingEventArgs, Task>

Callback invoked before the pane closes.

Methods

DockLayout

MethodReturnParameters
ClosePaneTaskstring paneName

Closes a pane and removes it from the visible layout.
GetStateDockLayoutState—

Returns a persistence snapshot of the current docking state.
IsPaneOpenboolstring paneName

Indicates whether a pane is currently open.
LoadStateTaskDockLayoutState state

Loads a docking state and applies it to the current layout.
OpenPaneTaskstring paneName

Opens a pane that was previously closed.
RefreshTask—

Forces rendered dock content to refresh without changing the docking state. Call this after mutating the State instance directly.
ResetStateTask—

Resets the docking state to the latest declarative layout definition.
ShowPaneTaskstring paneName

Shows a pane by opening it, activating it, or expanding its auto-hide flyout.
TogglePaneTaskstring paneName

Toggles a pane between opened and closed states.

DockPane

MethodReturnParameters
RefreshTask—

Forces rendered pane content to refresh without changing the docking state.