Version

PaneDoubleClickAction Enumeration

Used to indicate the action that occurs when double clicking on a pane caption, tab or sliding group
Syntax
'Declaration
 
Public Enum PaneDoubleClickAction 
   Inherits System.Enum
public enum PaneDoubleClickAction : System.Enum 
Members
MemberDescription
DefaultUse Default. The setting will be resolved based on the parent and dock manager settings.
NoneNone. No action is taken
ToggleDockedStateToggle. The docked state of the pane (and any descendants) is switched between docked and floating.
Example
The following code demonstrates setting the properties of the dock manager to prevent the user from resizing or repositioning the panes.

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

Private Sub PreventDockPaneSizing(ByVal manager As UltraDockManager)

    ' Don't show any of the caption buttons
    manager.ShowCloseButton = False
    manager.ShowMaximizeButton = False
    manager.ShowMinimizeButton = False
    manager.ShowPinButton = False

    ' Do not allow the pane to be repositioned
    manager.DefaultPaneSettings.AllowDragging = DefaultableBoolean.False

    ' Prevent double clicking on the pane caption, tab item
    ' and sliding group item from changing its docked state
    manager.DefaultPaneSettings.DoubleClickAction = PaneDoubleClickAction.None

    ' Don't allow a pane to be resize - this affects splitter
    ' bars and dragging the borders of a floating window. since
    ' the dock manager's dock areas (when not floating) are docked
    ' to the container, the dock areas will still resize with changes
    ' to the size of the container - i.e. resizing the form
    manager.DefaultPaneSettings.AllowResize = DefaultableBoolean.False

    ' Since showing the pin button affects whether the unpinned
    ' tab areas are displayed, let the unpinned tab area be
    ' displayed if there are any unpinned panes
    manager.ShowUnpinnedTabAreas = DefaultableBoolean.True

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

private void PreventDockPaneSizing( UltraDockManager manager )
{

	// Don't show any of the caption buttons
	manager.ShowCloseButton = false;
	manager.ShowMaximizeButton = false;
	manager.ShowMinimizeButton = false;
	manager.ShowPinButton = false;
	
	// Do not allow the pane to be repositioned
	manager.DefaultPaneSettings.AllowDragging = DefaultableBoolean.False;

	// Prevent double clicking on the pane caption, tab item
	// and sliding group item from changing its docked state
	manager.DefaultPaneSettings.DoubleClickAction = PaneDoubleClickAction.None;

	// Don't allow a pane to be resize - this affects splitter
	// bars and dragging the borders of a floating window. since
	// the dock manager's dock areas (when not floating) are docked
	// to the container, the dock areas will still resize with changes
	// to the size of the container - i.e. resizing the form
	manager.DefaultPaneSettings.AllowResize = DefaultableBoolean.False;

	// Since showing the pin button affects whether the unpinned
	// tab areas are displayed, let the unpinned tab area be
	// displayed if there are any unpinned panes
	manager.ShowUnpinnedTabAreas = DefaultableBoolean.True;

}
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