public static NSDragOperation ValidateDrop(this INSCollectionViewDelegate This, NSCollectionView collectionView, NSDraggingInfo draggingInfo, out NSIndexPath proposedDropIndexPath, out NSCollectionViewDropOperation proposedDropOperation)
 {
     proposedDropIndexPath = null;
     proposedDropOperation = NSCollectionViewDropOperation.On;
     return(This.ValidateDropOperation(collectionView, draggingInfo, ref proposedDropIndexPath, ref proposedDropOperation));
 }
예제 #2
0
 [Export("prepareForDragOperation:")]         // Do not remove
 internal virtual bool PrepareForDragOperation(AppKit.NSDraggingInfo draggingInfo)
 {
     // Always return true as UWP doesn't really have an equivalent step.
     // Drop is accepted within DraggingEntered (drag entered event in UWP).
     return(true);
 }
 public virtual NSDragOperation ValidateDrop(NSCollectionView collectionView, NSDraggingInfo draggingInfo, out NSIndexPath proposedDropIndexPath, out NSCollectionViewDropOperation proposedDropOperation)
 {
     proposedDropIndexPath = null;
     proposedDropOperation = NSCollectionViewDropOperation.On;
     return(ValidateDropOperation(collectionView, draggingInfo, ref proposedDropIndexPath, ref proposedDropOperation));
 }
예제 #4
0
 public NSDragOperation DragOperationForDraggingInfotype(NSDraggingInfo dragInfo, string type)
 {
     return(DragOperationForDraggingInfo(dragInfo, type));
 }