Version

Pin Method (DockableGroupPane)

Pins all of the DockableControlPane descendant panes.
Syntax
'Declaration
 
Public Overrides Sub Pin() 
public override void Pin()
Remarks

When a pane is pinned, its contents are displayed only while in use. At other times, the pane collapses into a tab at the edge of the docking area (the UnpinnedTabArea). The user may display the pane by clicking or hovering over the tab. Moving the mouse over the tab causes the pane to fly out; clicking the tab causes the pane to fly out and become activated.

Invoking this method pins all of the panes within a DockableGroupPane at once. The panes will become pinned to the dock area, and the UnpinnedTabArea will be displayed if it is not already showing. If one of the panes is active when it is pinned, it will immediately fly out and become visible. Note that the setting of AllowPin on any pane may affect its ability to be pinned.

Example
The following example demonstrates the various methods for pinning one or more DockableControlPane instances.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinDock

Private Sub btnPinAll_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPinAll.Click

    ' There are several options for re-pinning unpinned
    ' DockableControlPanes.

    ' You can re-pin an individual DockableControlPane
    Me.ultraDockManager1.PaneFromKey("treeSolutions").Pin()

    ' You can re-pin all the descendants/children of a particular 
    ' group pane. Note, since a DockAreaPane is a specialized
    ' DockableGroupPane, you can call the method on a
    ' dock area
    If Me.ultraDockManager1.DockAreas(0).DockedState = DockedState.Docked Then
        Me.ultraDockManager1.DockAreas(0).Pin()
    End If

    ' Or you can re-pin all unpinned panes
    Me.ultraDockManager1.PinAll()

End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinDock;
using System.Diagnostics;

private void btnPinAll_Click(object sender, System.EventArgs e)
{

	// There are several options for re-pinning unpinned
	// DockableControlPanes.

	// You can re-pin an individual DockableControlPane
	this.ultraDockManager1.PaneFromKey("treeSolutions").Pin();

	// You can re-pin all the descendants/children of a particular 
	// group pane. Note, since a DockAreaPane is a specialized
	// DockableGroupPane, you can call the method on a
	// dock area
	if (this.ultraDockManager1.DockAreas[0].DockedState == DockedState.Docked)
		this.ultraDockManager1.DockAreas[0].Pin();

	// Or you can re-pin all unpinned panes
	this.ultraDockManager1.PinAll();

}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also