Search Wiki:

Project Description


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).

win32-3d.JPG
Screenshot of a web browser control rendered into WPF space


Authors:

Leslie Godwin (mailto:leslie.godwin@gmail.com) http://www.leslie-godwin-wpf.blogspot.com/
Jeremiah Morrill (mailto:jeremiah.morrill@gmail.com) http://jmorrill.hjtcentral.com/

!!Release notes:
2007-08-01:
Initial release.

WARNING:

The control is still highly in prototype mode and It doesn't really work perfectly just yet

Known issues:

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

Requirements:

.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

<interactive3D:InteractiveVisual3D.Visual>
  <interop:Win32HostRenderer x:Name="webHost1" Debug="True">
    <interop:Win32HostRenderer.ContentControl>
      <forms:WebBrowser Width="400" Height="400" Url="file://readMe.html"/>
    </interop:Win32HostRenderer.ContentControl>
  </interop:Win32HostRenderer>
</interactive3D:InteractiveVisual3D.Visual>


2dwpfwin32.JPG
Last edited Aug 4 2007 at 9:59 PM  by jmorrill, version 17
Comments
kobush wrote  Aug 1 2007 at 8:28 PM  
Hi,
Your project is awesome !!! Actually I was strugling with same interop problem but with bit different approach. I will definitively try your stuff and get back to you with feedback. Thanks for sharing it and please keep up the great work.

raygun wrote  Aug 3 2007 at 4:04 AM  
Can't wait to hear what you find. There's still plenty to do to make this project user friendly.

jmorrill wrote  Aug 3 2007 at 8:57 AM  
Thanks, kobush! Leslie's right, there's still a lot of work (both bugs and performance) to do. We are very interested in any feedback, so lay it on us!

Updating...