public static IDragDropOperation GetRunningOperation(DependencyObject element) { IDragDropOperation operation = null; if (element != null) { operation = element.GetValue(DragDrop.dragDropOperationProperty) as IDragDropOperation; } return(operation); }
private static void RemoveOperation(IDragDropOperation dragDropOperation) { (dragDropOperation.Source as DependencyObject).ClearValue(DragDrop.dragDropOperationProperty); }
// exposed for testing internal static void AddOperation(IDragDropOperation dragDropOperation) { (dragDropOperation.Source as DependencyObject).SetValue(DragDrop.dragDropOperationProperty, dragDropOperation); }
internal static void OnOperationFinished(IDragDropOperation dragDropOperation) { RemoveOperation(dragDropOperation); }
public DragCompleteContext(object data, IDragDropOperation owner, bool dragSuccessful) : base(data, owner) { this.DragSuccessful = dragSuccessful; }
public DragContext(object data, IDragDropOperation owner) { this.PayloadData = data; this.owner = owner; }