开发者_JS百科I have a canvas and within it I have many Thumbs.. when I make a hit test on the canvas so as to find the thumbs near my mouse I get the wrong expected result which I get the border of the thumb not the thumb itself..
Please I want the solution!!
    
class HotPoint:Thumb, IDraggable
    {
    ...
    }
    IDraggable hotpoint = VisualTreeHelper.GetParent(result.VisualHit) as IDraggable;
Where IDraggable is an Interface I inherit from with the thumb. I remembered that every hotpoint has a custom control template so when I do hit tests the search will be on the primitive types, so when I get the parent of that object it will solve my request.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论