public DragDropEffects Drop(IDropAction info) { var str = ""; return(info.AcceptDrop((str = info.Item.GetString()) != null, DragDropEffects.Copy, () => DropAreaText = $"Dragged a string {str}")); }
public DragDropEffects DropInt(IDropAction info) { return(info.AcceptDrop <int>(DragDropEffects.Copy, number => DropAreaText = $"Dragged an int {number}")); }