This project has moved and is read-only. For the latest updates, please go here.

WPF WindowsFormsHost and MapImage

Topics: SharpMap Project, WinForms Controls
Jun 10, 2009 at 5:03 PM

I am trying to host the SharpMap MapImage control within a WPF window using WinForms interop via the WindowsFormsHost element.

Based on the code in the Sharpmap_Wms client winforms app, I am encountering a problem:

When I set a MapImage.Map to a Map object, the Map properties are reset -  PixelSize is set to Infinity, MapHeight is set to NaN and Size is set to 0,0

Is there a solution to this (other than waiting for the Sharpmap WPF control)?

are there any WPF SharpMap examples out there?