Back to Devexpress

DxSplitter.Orientation Property

blazor-devexpress-dot-blazor-dot-dxsplitter-5ab24cfa.md

latest1.7 KB
Original Source

DxSplitter.Orientation Property

Specifies whether the splitter arranges panes horizontally or vertically.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(Orientation.Horizontal)]
[Parameter]
public Orientation Orientation { get; set; }

Property Value

TypeDefaultDescription
OrientationHorizontal

The pane stack direction.

|

Available values:

NameDescription
Horizontal

Sets horizontal orientation.

| | Vertical |

Sets vertical orientation.

|

Remarks

The splitter component displays a single-level stack of panels. Use the Orientation property to specify the pane stack direction.

razor
<DxSplitter CssClass="border" Height="200px" Width="950px">
    <Panes>
        <DxSplitterPane>Pane 1</DxSplitterPane>
        <DxSplitterPane>
            <DxSplitter Orientation="Orientation.Vertical">
                <Panes>
                    <DxSplitterPane>Pane 2-1</DxSplitterPane>
                    <DxSplitterPane>Pane 2-2</DxSplitterPane>
                </Panes>
            </DxSplitter>
        </DxSplitterPane>
        <DxSplitterPane>Pane 3</DxSplitterPane>
    </Panes>
</DxSplitter>

Run Demo

See Also

DxSplitter Class

DxSplitter Members

DevExpress.Blazor Namespace