DocumentGroup.PinLocation Attached Property
Specifies where the pinned tabbed DocumentPanel is located. This is an attached and a dependency property.
Namespace: DevExpress.Xpf.Docking
Assembly: DevExpress.Xpf.Docking.v18.2.dll
Declaration
Returns
Type | Description |
---|---|
DevExpress.Xpf.Layout.Core.TabHeaderPinLocation | A DevExpress.Xpf.Layout.Core.TabHeaderPinLocation object that specifies where the pinned tabbed DocumentPanel is located. |
Remarks
The DocumentGroup object contains child DocumentPanel objects that allow you to create a tabbed or MDI interface. To create a tabbed interface, set the DocumentGroup.MDIStyle property to MDIStyle.Tabbed.
If DocumentPanels are represented as tabs, they can display Pin buttons that allow an end-user to pin and unpin a current tab at runtime. Pinned tabs are stacked to either the left or right side. The figure below illustrates an example.
To specify where the pinned tabs are located, use the PinLocation attached property in an XAML mark-up. To do the same from code, use the DocumentGroup.SetPinLocation and DocumentGroup.GetPinLocation methods. This code illustrates an example.
<dxdo:DockLayoutManager>
<dxdo:LayoutGroup>
<dxdo:DocumentGroup x:Name="Group1" Caption="DocumentGroup" >
<dxdo:DocumentPanel x:Name="Document1" Caption="Document1" dxdo:DocumentGroup.PinLocation="Near"/>
<dxdo:DocumentPanel x:Name="Document2" Caption="Document2"/>
<dxdo:DocumentPanel x:Name="Document3" Caption="Document3"/>
<dxdo:DocumentPanel x:Name="Document4" Caption="Document4" dxdo:DocumentGroup.PinLocation="Far"/>
</dxdo:DocumentGroup>
</dxdo:LayoutGroup>
</dxdo:DockLayoutManager>