Exemplo n.º 1
0
 public bool IsTargetWithinSource(Block target)
 {
     foreach (Block source in DragState.Query)
     {
         ContainerBlock sourceContainer = source as ContainerBlock;
         if (sourceContainer != null)
         {
             if (target.IsInSubtreeOf(sourceContainer))
             {
                 return(true);
             }
         }
     }
     return(false);
 }
Exemplo n.º 2
0
 public bool IsTargetWithinSource(Block target)
 {
     foreach (Block source in DragState.Query)
     {
         ContainerBlock sourceContainer = source as ContainerBlock;
         if (sourceContainer != null)
         {
             if (target.IsInSubtreeOf(sourceContainer))
             {
                 return true;
             }
         }
     }
     return false;
 }