wpf-devexpress-dot-xpf-dot-docking-dot-layoutgroup-4463f22c.md
Gets or sets the child item’s orientation within the group (horizontal or vertical). This is a dependency property.
Namespace : DevExpress.Xpf.Docking
Assembly : DevExpress.Xpf.Docking.v25.2.dll
NuGet Package : DevExpress.Wpf.Docking
public Orientation Orientation { get; set; }
Public Property Orientation As Orientation
| Type | Description |
|---|---|
| Orientation |
The child item’s orientation within the group.
|
The following code sample creates LayoutRoot and TopGroup LayoutGroups and sets their Orientation property to Vertical and Horizontal:
<Window ...
xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking">
<Grid>
<dxdo:DockLayoutManager>
<dxdo:LayoutGroup x:Name="LayoutRoot" Orientation="Vertical">
<dxdo:LayoutGroup x:Name="TopGroup" Orientation="Horizontal">
<dxdo:LayoutPanel Caption="Toolbox"/>
<dxdo:DocumentGroup>
...
</dxdo:DocumentGroup>
</dxdo:LayoutGroup>
<dxdo:TabbedGroup>
<dxdo:LayoutPanel Caption="Solution Explorer"/>
<dxdo:LayoutPanel Caption="Properties"/>
</dxdo:TabbedGroup>
</dxdo:LayoutGroup>
</dxdo:DockLayoutManager>
</Grid>
</Window>
The following code snippets (auto-collected from DevExpress Examples) contain references to the Orientation property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
<dxd:DockLayoutManager>
<dxd:LayoutGroup Name="generalLayoutGroup" GroupBorderStyle="GroupBox" ShowCaption="True" Caption="General" Orientation="Vertical">
<dxd:LayoutControlItem Name="incidentNumber" Caption="Incident Number" VerticalAlignment="Top">
<dxdo:DockLayoutManager x:Name="dockManager" ClosingBehavior="ImmediatelyRemove" AllowCustomization="False">
<dxdo:LayoutGroup Orientation="Vertical" >
<dxdo:LayoutGroup ItemHeight="0.7*" Orientation="Horizontal">
ShowingMenu="dockManager1_ShowingMenu">
<dxdo:LayoutGroup x:Name="rootGroup" Orientation="Horizontal">
<dxdo:LayoutGroup x:Name="layoutGroup3" Orientation="Vertical">
<dxdo:DockLayoutManager>
<dxdo:LayoutGroup Orientation="Horizontal">
<dxdo:LayoutPanel Caption="Users">
<dxdo:LayoutGroup>
<dxdo:LayoutGroup Orientation="Vertical">
<dxdo:LayoutPanel Caption="MainRegion" dxprism:DXRegionManager.RegionName="MainRegion" />
See Also