Version

PinBehavior Property

Determines whether the active pane or all panes are unpinned when clicking the auto hide button (or using the Auto Hide context menu item) of a pane within a dockable TabGroup.
Syntax
'Declaration
 
Public Property PinBehavior As PaneActionBehavior
public PaneActionBehavior PinBehavior {get; set;}
Example
This example demonstrates using the PaneActionBehavior properties to control whether the pane buttons for ContentPanes in a TabGroupPane affect all the tab items or just the currently selected item.

Imports Infragistics.Windows.DockManager

Private Sub InitializeDmWithBehavior(ByVal dockManager As XamDockManager)
    ' the CloseBehavior and PinBehavior properties 
    ' allow you to emulate the VS behavior where you 
    ' may control whether the close and pin buttons 
    ' of a pane in a tab group affect all the panes 
    ' or just the pane that is displayed 
    dockManager.CloseBehavior = PaneActionBehavior.ActivePane
    dockManager.PinBehavior = PaneActionBehavior.AllPanes

    ' create some panes to allow the behavior to be demonstrated 
    Dim split As New SplitPane()
    Dim tab As New TabGroupPane()
    Dim cp As New ContentPane()
    cp.Header = "One"
    tab.Items.Add(cp)
    cp = New ContentPane()
    cp.Header = "Two"
    tab.Items.Add(cp)
    cp = New ContentPane()
    cp.Header = "Three"
    tab.Items.Add(cp)
    split.Panes.Add(tab)
    dockManager.Panes.Add(split)
End Sub
using Infragistics.Windows.DockManager;

private void InitializeDmWithBehavior(XamDockManager dockManager)
{
	// the CloseBehavior and PinBehavior properties
	// allow you to emulate the VS behavior where you 
	// may control whether the close and pin buttons
	// of a pane in a tab group affect all the panes
	// or just the pane that is displayed
	dockManager.CloseBehavior = PaneActionBehavior.ActivePane;
	dockManager.PinBehavior = PaneActionBehavior.AllPanes;

	// create some panes to allow the behavior to be demonstrated
	SplitPane split = new SplitPane();
	TabGroupPane tab = new TabGroupPane();
	ContentPane cp = new ContentPane();
	cp.Header = "One";
	tab.Items.Add(cp);
	cp = new ContentPane();
	cp.Header = "Two";
	tab.Items.Add(cp);
	cp = new ContentPane();
	cp.Header = "Three";
	tab.Items.Add(cp);
	split.Panes.Add(tab);
	dockManager.Panes.Add(split);
}
<!-- the CloseBehavior and PinBehavior properties
     allow you to emulate the VS behavior where you 
     may control whether the close and pin buttons
     of a pane in a tab group affect all the panes
     or just the pane that is displayed 
-->
<igDock:XamDockManager CloseBehavior="ActivePane"
                       
PinBehavior="AllPanes">
    
<igDock:XamDockManager.Panes>
        
<igDock:SplitPane>
            
<igDock:TabGroupPane>
                
<igDock:ContentPane Header="One" />
                
<igDock:ContentPane Header="Two" />
                
<igDock:ContentPane Header="Three" />
            
</igDock:TabGroupPane>
        
</igDock:SplitPane>
    
</igDock:XamDockManager.Panes>
</igDock:XamDockManager>
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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