Back to Devexpress

DxSplitterPane.MaxSize Property

blazor-devexpress-dot-blazor-dot-dxsplitterpane-72c335b5.md

latest1.7 KB
Original Source

DxSplitterPane.MaxSize Property

Specifies the maximum size of the pane.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public string MaxSize { get; set; }

Property Value

TypeDescription
String

The pane size in pixels (px) or percentage (%).

|

Remarks

When the AllowResize property is set to true, users can resize the pane. Use the DxSplitterPane.MaxSize property to set the maximum width or height (depends on the splitter’s orientation).

Note

The size of at least one panel should remain undefined. Otherwise, the Splitter component ignores the size of the last pane.

razor
<DxSplitter CssClass="border" Width="100%" Height="600px">
    <Panes>
        <DxSplitterPane Size="30%" MinSize="100px">@PaneContent1</DxSplitterPane>
        <DxSplitterPane Size="50%" MaxSize="70%">@PaneContent2</DxSplitterPane>
        <DxSplitterPane>@PaneContent3</DxSplitterPane>
    </Panes>
</DxSplitter>

Run Demo

Tip

To specify the initial pane size, use the Size property.

See Also

DxSplitterPane Class

DxSplitterPane Members

DevExpress.Blazor Namespace