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 10:59 PM by jmorrill, version 17