'宣言 Public Event PaneDragStarting As EventHandler(Of PaneDragStartingEventArgs)
public event EventHandler<PaneDragStartingEventArgs> PaneDragStarting
イベント ハンドラが、このイベントに関連するデータを含む、PaneDragStartingEventArgs 型の引数を受け取りました。次の PaneDragStartingEventArgs プロパティには、このイベントの固有の情報が記載されます。
プロパティ | 解説 |
---|---|
AllowDockingIndicatorsWithinDocumentContentHost | ドッキング インジケーターが Infragistics.Windows.DockManager.DocumentContentHost 内の Infragistics.Windows.DockManager.TabGroupPane インスタンスに表示されるかどうかを示すブール値を返すか、設定します。 |
Cancel Infragistics.Windows.Controls.Events.CancelableRoutedEventArgsから継承されます。 | |
Handled System.Windows.RoutedEventArgsから継承されます。 | Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. |
InvalidDragActionCursor | ドラッグ操作の間にマウスが無効なドロップ位置上にある時デフォルトで表示すべきカーソル。 |
OriginalSource System.Windows.RoutedEventArgsから継承されます。 | Gets the original reporting source as determined by pure hit testing, before any possible System.Windows.RoutedEventArgs.Source adjustment by a parent class. |
Panes | ドラッグされるペインのコレクションを返します。 |
PreventDockingWhileControlKeyIsPressed | Control キーが押された間にドッキングが有効かどうかを示すブール値を返すか、設定します。 |
RaisePaneDragOverForInvalidLocations | ドラッグされるペインのプロパティに基づいて、マウスが無効なペイン位置上に移動された時でさえ、PaneDragOver イベントが発生するかどうかを示します。 |
RootPane | ドラッグされているルート要素を返します。 |
RoutedEvent System.Windows.RoutedEventArgsから継承されます。 | Gets or sets the System.Windows.RoutedEventArgs.RoutedEvent associated with this System.Windows.RoutedEventArgs instance. |
Source System.Windows.RoutedEventArgsから継承されます。 | Gets or sets a reference to the object that raised the event. |
ValidDragActionCursor | ドラッグ操作の間にマウスが有効なドロップ位置上にある時デフォルトで表示すべきカーソル。 |
Imports Infragistics.Windows.DockManager Imports Infragistics.Windows.DockManager.Events Private Sub XamDockManager_PaneDragStarting(ByVal sender As Object, ByVal e As PaneDragStartingEventArgs) ' these two properties can be used to initialize the default ' cursors used when over an invalid or valid drop location ' respectively. by default the PaneDragOver is not raised ' for invalid locations so for most cases this is the only ' way to initialize the invalid drop cursor e.InvalidDragActionCursor = Cursors.No e.ValidDragActionCursor = Cursors.Arrow ' you can have the PaneDragOver get raised for all drop ' locations by setting RaisePaneDragOverForInvalidLocations ' note however that this means that the docking indicators ' will be shown over all panes - even those for which the ' dragged panes properties do not allow it by default. e.RaisePaneDragOverForInvalidLocations = True ' you can see the panes that will be dragged ' and if necessary, you can prevent the drag ' operation from starting. 'e.Cancel = true; For Each pane As ContentPane In e.Panes Next End Sub
using Infragistics.Windows.DockManager; using Infragistics.Windows.DockManager.Events; private void XamDockManager_PaneDragStarting(object sender, PaneDragStartingEventArgs e) { // these two properties can be used to initialize the default // cursors used when over an invalid or valid drop location // respectively. by default the PaneDragOver is not raised // for invalid locations so for most cases this is the only // way to initialize the invalid drop cursor e.InvalidDragActionCursor = Cursors.No; e.ValidDragActionCursor = Cursors.Arrow; // you can have the PaneDragOver get raised for all drop // locations by setting RaisePaneDragOverForInvalidLocations // note however that this means that the docking indicators // will be shown over all panes - even those for which the // dragged panes properties do not allow it by default. e.RaisePaneDragOverForInvalidLocations = true; // you can see the panes that will be dragged foreach (ContentPane pane in e.Panes) { // and if necessary, you can prevent the drag // operation from starting. //e.Cancel = true; } }