예제 #1
0
 public virtual HitResult HitTest(Point p)
 {
     if (IsSelected)
     {
         var hitResult = ResizeHandles.HitTest(p);
         if (hitResult is not HitResult.None)
         {
             return(hitResult);
         }
     }
     return(HitTestStrategy.HitTest(p, this) ? HitResult.Body : HitResult.None);
 }
예제 #2
0
 /// <remarks>
 /// * ContentControl组成UITree, ScreenManager作为根节点
 ///  * 按ZIndex从大到小排序;从根节点做深度优先搜索
 ///  * this.HitTest()以this为根节点; ScreenManager.HitTest()做全局的HitTest
 /// </remarks>
 /// <param name="Point">待测点想对于根节点的坐标</param>
 /// <param name="Strategy">策略</param>
 public virtual UIElement HitTest(Vector2 Point, HitTestStrategy Strategy)
 {
     throw new System.NotImplementedException();
 }