private void DragAction(Type actionType, string category) { DragAndDropManager.SetMode(DragAndDropManager.DragMode.AddAction); DragAndDrop.PrepareStartDrag(); DragAndDrop.set_objectReferences(new Object[0]); DragAndDrop.SetGenericData("AddAction", this.selectedAction); DragAndDrop.StartDrag("Drag Action"); Event.get_current().Use(); this.SelectAction(actionType, category); }
public static void Reset() { DragAndDropManager.SetMode(DragAndDropManager.DragMode.None); DragAndDrop.SetGenericData("MoveActions", null); DragAndDrop.SetGenericData("AddAction", null); }