Back to Devexpress

LayoutGroup.Orientation Property

wpf-devexpress-dot-xpf-dot-docking-dot-layoutgroup-4463f22c.md

latest5.3 KB
Original Source

LayoutGroup.Orientation Property

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

Declaration

csharp
public Orientation Orientation { get; set; }
vb
Public Property Orientation As Orientation

Property Value

TypeDescription
Orientation

The child item’s orientation within the group.

|

Remarks

The following code sample creates LayoutRoot and TopGroup LayoutGroups and sets their Orientation property to Vertical and Horizontal:

xaml
<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.

wpf-dock-layout-manager-limit-layout-group-customization-at-runtime/CS/DXDockingForLayoutPurposes/MainWindow.xaml#L21

xml
<dxd:DockLayoutManager>
    <dxd:LayoutGroup Name="generalLayoutGroup" GroupBorderStyle="GroupBox" ShowCaption="True" Caption="General" Orientation="Vertical">
        <dxd:LayoutControlItem Name="incidentNumber" Caption="Incident Number" VerticalAlignment="Top">

wpf-dock-layout-manager-define-prism-regions-for-dock-layout-manager-elements/CS/PrismOnDXDocking/Shell.xaml#L76

xml
<dxdo:DockLayoutManager x:Name="dockManager" ClosingBehavior="ImmediatelyRemove" AllowCustomization="False">
    <dxdo:LayoutGroup Orientation="Vertical" >
        <dxdo:LayoutGroup ItemHeight="0.7*" Orientation="Horizontal">

wpf-dock-layout-manager-use-events-to-dynamically-customize-context-menus/CS/DockManager_MenuCustomization/Window1.xaml#L13

xml
ShowingMenu="dockManager1_ShowingMenu">
<dxdo:LayoutGroup x:Name="rootGroup" Orientation="Horizontal">
    <dxdo:LayoutGroup x:Name="layoutGroup3" Orientation="Vertical">

wpf-docklayoutmanager-use-services-that-implement-the-idocumentmanagerservice/CS/DXDocumentUIServiceSample/MainWindow.xaml#L34

xml
<dxdo:DockLayoutManager>
    <dxdo:LayoutGroup Orientation="Horizontal">
        <dxdo:LayoutPanel Caption="Users">

wpf-dock-layout-manager-insert-prism-regions-into-dock-layout-manager-panels/CS/PrismSupportSample/Shell.xaml#L11

xml
<dxdo:LayoutGroup>
    <dxdo:LayoutGroup Orientation="Vertical">
        <dxdo:LayoutPanel Caption="MainRegion" dxprism:DXRegionManager.RegionName="MainRegion" />

See Also

ItemWidth

ItemHeight

LayoutGroup Class

LayoutGroup Members

DevExpress.Xpf.Docking Namespace