override - Overrriding HitTestCore method for detecting multiple controls in WPF -


I am creating a custom control that kills a test on my children. I am planning to override the HitTestCore method to return many rules that are inside or injected within a geographical area. Just wondering if anyone else has tried it. Do you have any signs for me? Or is there any other way I can do this (without actually overriding the HitTestCore method)? Thanks in advance for any help. :)

So, I was able to get many controls like I do not need to override HitTestCore method

I have created a HitTestFilterCallback and whenever it gets hit on the checkbox (which was the type of control I tested was killed) I did it Saved in a list named _hitTestResults . But I'm not sure that this is the right way to do this:

Here's what I did:

  HitTestFilterBehavior OnHitTestFilter {dependent object target} {If (target gatetype () == Typef (checkbox) {_hitTestResults.Add (targets as checkboxes); // hitest result returns HitTestFilterBehavior.ContinueSkipChildren; } And then hit HitTestFilterBehavior.Continue; }  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -