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