語言

DragDropHelper 類別

定義

代表一個輔助類別,協助在 Windows 工作流程設計器中拖放。

public ref class DragDropHelper abstract sealed
public static class DragDropHelper
type DragDropHelper = class
Public Class DragDropHelper
繼承
DragDropHelper

備註

此類別抽象了從拖曳源傳遞到目標的 中所使用的 DataObject 編碼格式。

欄位

名稱 Description
CompletedEffectsFormat

指定拖放操作完成後期望產生的效果。

CompositeViewFormat

包含複合視圖的唯一資料格式名稱。

DragAnchorPointFormat

指定拖曳操作錨點的格式。

DragSourceProperty

指定阻力來源。

ModelItemDataFormat

規定模型項目資料的格式。

WorkflowItemTypeNameFormat

指定工作流程項目類型名稱的格式。

方法

名稱 Description
AllowDrop(IDataObject, EditingContext, Type[])

表示設計者是否能接受使用者拖入的資料。

DoDragMove(WorkflowViewElement, Point)
已淘汰.

允許用滑鼠左鍵向下拖曳 UI 元素,覆蓋該 UI 元素客戶端區域的暴露區域。

GetCompositeView(DragEventArgs)
已淘汰.

從指定的拖曳事件參數中取得複合視圖資訊。

GetCompositeView(WorkflowViewElement)

從指定的工作流程視圖元素取得複合視圖資訊。

GetDragDropAnchorPoint(DragEventArgs)

取得拖放操作的錨點。

GetDragDropCompletedEffects(DataObject)
已淘汰.

回傳拖放操作的結果,其行為由指定的 DataObject決定。

GetDraggedModelItem(DragEventArgs)
已淘汰.

以拖放操作擷取被拖曳的物件。

GetDraggedModelItems(DragEventArgs)

以拖放操作擷取正在拖曳的模型項目。

GetDroppedObject(DependencyObject, DragEventArgs, EditingContext)
已淘汰.

以拖放操作擷取正在丟棄的物件。

GetDroppedObjects(DependencyObject, DragEventArgs, EditingContext)

以拖放操作擷取正在被丟棄的物件。

SetCompositeView(WorkflowViewElement, UIElement)

從指定的工作流程視圖元素設定複合視圖,並拖曳來源。

SetDragDropCompletedEffects(DragEventArgs, DragDropEffects)
已淘汰.

設定拖放操作中將執行的最終效果。

適用於