Quantcast
Channel: HitTest Custom Control
Browsing all 5 articles
Browse latest View live

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 Article



HitTest 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 Article

HitTest 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 Article

HitTest 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 Article

HitTest 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

Browsing all 5 articles
Browse latest View live




Latest Images