I have a WPF window which contains also WinForms controls wrapped in a WindowsFormsHost (besides other WPF controls). I'd like to determine the control (WPF or WinForms) which is displayed under a certain position.
To receive the position of a WPF control I can use
VisualTreeHelper.HitTest(wpfWindow, position)
This does not work when a WindowsFormsHost is displayed at this position. For that case HitTest() returns a WPF control which is behind the WindowsFormsHost.
Any ideas how to get that working also for interop scenarios?