'宣言 Public ReadOnly Property FlyoutPane As DockableControlPane
public DockableControlPane FlyoutPane {get;}
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinDock Private Sub ultraDockManager1_BeforeSplitterDrag(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinDock.CancelablePanesEventArgs) Handles ultraDockManager1.BeforeSplitterDrag ' BeforeSplitterDrag fires before the splitter bar adjacent to a ' DockAreaPane, between two panes in a horizontal or vertical ' split group, or adjacent to a control pane in a ' flyout window has been allowed to start a drag. Settings ' Cancel to true will prevent the splitter from being allowed ' to drag. ' Do not allow the flyout window to be resized If (e.Panes.Length = 1) Then Dim pane As DockablePaneBase = e.Panes(0) ' if the pane that will be resized is the flyout ' pane, do not allow it If (pane.Manager.FlyoutPane Is pane) Then e.Cancel = True End If End If End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinDock; using System.Diagnostics; private void ultraDockManager1_BeforeSplitterDrag(object sender, Infragistics.Win.UltraWinDock.CancelablePanesEventArgs e) { // BeforeSplitterDrag fires before the splitter bar adjacent to a // DockAreaPane, between two panes in a horizontal or vertical // split group, or adjacent to a control pane in a // flyout window has been allowed to start a drag. Settings // Cancel to true will prevent the splitter from being allowed // to drag. // Do not allow the flyout window to be resized if (e.Panes.Length == 1) { DockablePaneBase pane = e.Panes[0]; // If the pane that will be resized is the flyout // pane, do not allow it if (pane.Manager.FlyoutPane == pane) e.Cancel = true; } }