Esempio n. 1
0
 /// <summary>
 /// Determines whether the given element is ignored on drop action (<see cref="DragDrop.IsDropTarget"/>).
 /// </summary>
 /// <param name="element">The given element.</param>
 /// <returns>Element is ignored or not.</returns>
 public static bool IsDropTarget(this UIElement element)
 {
     return(element != null && DragDrop.GetIsDropTarget(element));
 }
Esempio n. 2
0
 /// <summary>
 /// Determines whether the given element is ignored on drop action (<see cref="DragDrop.IsDragSource"/>).
 /// </summary>
 /// <param name="element">The given element.</param>
 /// <returns>Element is ignored or not.</returns>
 public static bool IsDragSource(this UIElement element)
 {
     return(element != null && DragDrop.GetIsDragSource(element));
 }