blazor-devexpress-dot-blazor-dot-dxsplitterpane.md
Specifies the size of the pane.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public string Size { get; set; }
| Type | Description |
|---|---|
| String |
The size, in CSS units.
|
Use the Size property to specify the initial width of vertical panes and height of horizontal panes.
<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>
Note
The size of at least one panel should remain undefined. Otherwise, the Splitter component ignores the size of the last pane.
When the AllowResize property is set to true, users can resize the pane. Use the MinSize and MaxSize properties to set the pane’s width or height. Handle the SizeChanged event to react to pane size changes.
In a horizontal Splitter, panes without the Size property automatically expand to occupy the available width equally.
In a vertical Splitter, the distribution of pane heights depends on the splitter’s total height and the Size properties of individual panes:
Size property automatically expand to occupy the available height equally.Size property expand or shrink depending on their content.See Also