Exemplo n.º 1
0
        static DependencyObject FindDragEnterCommandHolder(DependencyObject originalSource)
        {
            var element = originalSource.FindParent <DependencyObject>(t =>
            {
                return(DragDropManager.GetOnDragEnterCommand(t) != null);
            });

            return(element);
        }
Exemplo n.º 2
0
        static ICommand FindDragEnterCommand(DependencyObject originalSource)
        {
            var element = DragDropManager.FindDragEnterCommandHolder(originalSource);

            if (element != null)
            {
                return(DragDropManager.GetOnDragEnterCommand(element));
            }

            return(null);
        }