Breath new WPF life into those legacy Win32 controls. Win32HostRenderer is a WPF control that will host a Win32 control and render it onto a WPF bitmap buffer allowing you to interact with the control and apply anchors and other sweet WPF trickery and magic.
It works with 2D and 3D viewports (WPF 3DTools 1.01).
Screenshot of a web browser control rendered into WPF space
Leslie Godwin (mailto:email@example.com
Jeremiah Morrill (mailto:firstname.lastname@example.org
The control is still highly in prototype mode and It doesn't really work perfectly just yet
1. No comments in the code.
2. The over-layed Win32 control does not always disappear when it should. Currently only disappears when the window is minimised.
3. The app might crash when moving the mouse over the window while shutting it down.
4. Don't think it'll work with framework 3.5
.NET framework 3.0.
Visual Studio 2005
WPF 3D Tools 1.01 (included)
How to run:
1. Open the "WPFInterop.sln" solution.
2. Everything should compile without any intervention.
I've included the WPF 3D Tools 1.01 for simplicity.
There are 2 testing windows
Test2D.xml & Test3D.xml
An example of the XAML markup
<interop:Win32HostRenderer x:Name="webHost1" Debug="True">
<forms:WebBrowser Width="400" Height="400" Url="file://readMe.html"/>