MultiSplitter

The MultiSplitter splits the page into multiple sections and allows the user to control the page layout.

You can include as many Panes as you like in a container. By default, panes are resizable, but the Resizable property can be used to block this functionality. The initial Size is in percent or pixels and has a Min and Max value. A Panel can be fully collapsed by setting the Collapsible property to True.

These CSS variables are predefined with these values, but can be overwritten (using Style property)

    .fluent-multi-splitter {
        /* Resize Icon colors */
        --fluent-multi-splitter-color: var(--neutral-stroke-strong-rest);
        --fluent-multi-splitter-color-active: var(--neutral-stroke-strong-hover);

        /* Bar colors */
        --fluent-multi-splitter-background-color: var(--neutral-stroke-rest);
        --fluent-multi-splitter-background-color-active: var(--neutral-stroke-hover);
        --fluent-multi-splitter-hover-opacity: 0.8;

        /* Bar size */
        --fluent-multi-splitter-bar-size: 8px;
    }
    

Why have we created this new component when FluentSplitter already exists?

We want to generalize this component by making it easier to have several (>2) panels per container. We've also used CSS variables to simplify the customization of colors and sizes.

Examples

Default

Example
Left Menu
Main Content
Console log
Properties
Download: 

Documentation

FluentMultiSplitter Class

Parameters

Name
Type
Default
Description
BarSizestring?
Gets or sets the size of the splitter bar in pixels. Default is 8
ChildContentRenderFragment?
Gets or sets the child content.
Heightstring?
Gets or sets the height of the container.
OrientationOrientation
Horizontal
Gets or sets the orientation.
Widthstring?
Gets or sets the width of the container.

EventCallbacks

Name
Type
Description
OnCollapseEventCallback<FluentMultiSplitterEventArgs>
Gets or sets the collapse callback.
OnExpandEventCallback<FluentMultiSplitterEventArgs>
Gets or sets the expand callback.
OnResizeEventCallback<FluentMultiSplitterResizeEventArgs>
Gets or sets the resize callback.

Methods

Name
Parameters
Type
Description
AddPaneFluentMultiSplitterPane pane
void
Adds the pane.
OnPaneResizedAsyncint paneIndex
double sizeNew
int? paneNextIndex
double? sizeNextNew
Task
Called when pane resized (internal method).
Refreshvoid
Refreshes this instance.
RemovePaneFluentMultiSplitterPane pane
void
Removes the pane.

FluentMultiSplitterPane Class

Parameters

Name
Type
Default
Description
ChildContentRenderFragment?
Gets or sets the child content.
Collapsedbool
False
Gets or sets a value indicating whether this FluentMultiSplitterPane is collapsed.
Collapsiblebool
False
Gets or sets a value indicating whether this FluentMultiSplitterPane is collapsible.
Maxstring
Determines the maximum value.
Minstring
Determines the minimum value.
Resizablebool
True
Gets or sets a value indicating whether this FluentMultiSplitterPane is resizable.
Sizestring
Gets or sets the size.
SplitterFluentMultiSplitter
Gets or sets the splitter.
Horizontal
Vertical
An error has occurred. This application may no longer respond until reloaded. Reload 🗙