HitTest Custom Control
What I generate in OnRender, is it added as a visual child on my FrameworkElement?If I draw with OnRender, the HitTesting will return my FrameworkElement. But if I manage a collection of visual...
View ArticleHitTest Custom Control
What's your baseclass?If your control doesn't have a visual in it's tree (even something you generate in OnRender) click will go straight through it.If you derive from FrameworkElement, you need to...
View ArticleHitTest Custom Control
The problem is that my control has a a style applyed to itAnd i found out that the ancestor of the controls in the style is not my control .If i go up the parent at some pont i'll get null and I will...
View ArticleHitTest Custom Control
HitTest deals with the Visuals (essentially parts of your control), so you'll need to introduce some sort of converter, which will check if the Visual belongs to your control.
View ArticleHitTest Custom Control
How can I hit test my custom controlI maid a ControlPanel class which contains a grid, a caption and some other stuff How can I hit test itBecause when I try to hit test it it never returns my control...
View Article