private void AssociatedObjectOnDragLeave(object sender, DragEventArgs dragEventArgs) { if (_transferedType != null && dragEventArgs.Data.GetDataPresent(_transferedType)) { IDropable dropable = AssociatedObject.DataContext as IDropable; dropable?.DragLeave(); } }