'宣言 Public Event BeforeSplitterDrag As CancelablePanesEventHandler
public event CancelablePanesEventHandler BeforeSplitterDrag
イベント ハンドラが、このイベントに関連するデータを含む、CancelablePanesEventArgs 型の引数を受け取りました。次の CancelablePanesEventArgs プロパティには、このイベントの固有の情報が記載されます。
プロパティ | 解説 |
---|---|
Cancel System.ComponentModel.CancelEventArgsから継承されます。 | |
Panes | イベントに関連付けられたDockablePaneBaseインスタンスを返します。このプロパティは読み取り専用です。 |
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; } }