バージョン

DockAreaPane プロパティ (DockablePaneBase)

ペインを格納しているルート DockArea 先祖を返します。
シンタックス
'宣言
 
Public ReadOnly Property DockAreaPane As DockAreaPane
public DockAreaPane DockAreaPane {get;}
解説

すべてのペインは、DockArea ペインによって即座または最終的に格納されます。現在のペインがネストされるその他のペインに関係なく、このプロパティはそのペインへの参照を返します。

使用例
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinDock

Private Sub ultraDockManager1_BeforeShowFlyout(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinDock.CancelableControlPaneEventArgs) Handles ultraDockManager1.BeforeShowFlyout

    ' BeforeShowFlyout is fired before an unpinned control pane is
    ' displayed in a flyout window.
    '

    ' Prevent flyouts docked to the top or bottom from flying out -
    ' get the associated DockArea and base it on its docked location
    Dim location As DockedLocation = e.Pane.DockAreaPane.DockedLocation

    If (location = DockedLocation.DockedBottom OrElse _
        location = DockedLocation.DockedTop) Then
        e.Cancel = True
    End If

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

private void ultraDockManager1_BeforeShowFlyout(object sender, Infragistics.Win.UltraWinDock.CancelableControlPaneEventArgs e)
{

	// BeforeShowFlyout is fired before an unpinned control pane is
	// displayed in a flyout window.
	//

	// Prevent flyouts docked to the top or bottom from flying out -
	// get the associated DockArea and base it on its docked location
	DockedLocation location = e.Pane.DockAreaPane.DockedLocation;

	if (location == DockedLocation.DockedBottom ||
		location == DockedLocation.DockedTop)
		e.Cancel = true;

}
参照