Version

Pin Method (DockableControlPane)

Reattaches the pane to its docked parent pane.
Syntax
'Declaration
 
Public Overrides Sub Pin() 
public override void Pin()
Remarks

Invoking this method is equivalent to the user clicking the pin button in the pane's caption area when the pane is unpinned. The pane will become pinned to the dock area, and can no longer be collapsed. If the pane is currently collapsed into the UnpinnedTabArea, it will immediately fly out and become visible. Its tab will be removed from the UnpinnedTabArea, and if there are no other tabs there, the UnpinnedTabArea will be hidden.

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