I am creating a custom control which does hit testing on its children. I’m planning on overriding the HitTestCore method to return multiple controls which fall inside or intersects with a Geometric region. Just wondering if anyone else has tried this. Do you have any pointers for me? Or is there another way which I can do this (without actually overriding the HitTestCore method)? Thanks in advance for any help. 🙂
I am creating a custom control which does hit testing on its children. I’m
Share
So, I was able to get multiple controls seems like I didn’t need to override the
HitTestCoremethod.I created a
HitTestFilterCallbackand whenever it hit on aCheckBox(which was the type of control I was hit testing) I saved it onto a list called_hitTestResults. But I’m not sure whether this is the right way to do this :SHere is what I did: