I have a legacy application which is a mix of WPF and Windows Forms. Essentially a WPF app is loaded onto a Windows Forms Application by adding an ElementHost onto the Windows Form. This WPF application then loads a WPF user control onto it. Embedded within this WPF User control is a legacy Windows Control (a custom browser control) that eventually derives from System.Windows.Forms
Is there a way to grab a handle to this control dynamically from the code? We don't know the name the control would be given when it is rendered. All we know is the basetype of the control which as I mentioned derives from System.WIndows.Forms.
All the examples I have seen so far discuss how a child that is eventually a DependencyObject can be discovered dynamically. I haven't yet come across an example that explains how an old school Windows Form control can be discovered programmatically within a WPF app.