The Surface development community has been asking for a WPF map control. Well, I have good new for you. We brought the request to the Bing maps team and they just got it done! Today, the Bing team posted the Beta release for a WPF version of their Bing maps control! We are really excited about the outcome because they will be able to provide an official story around mapping on WPF.
Download the map control and write some awesome Surface applications.
I like the control because:
1. It is consistent with Silverlight version of the control.
The Bing Map APIs will be consistent with the Silverlight version of the control. If you already know how to use the Silverlight map control, you are set. It will support the following map styles: Road, Aerial and Hybrid.
2. It is easy to use.
The XAML below says it all…
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="http://schemas.microsoft.com/surface/2008" xmlns:m="clr-namespace:Microsoft.Maps.MapControl.WPF;assembly=Microsoft.Maps.MapControl.WPF" Title="MyMapApplication" >
<Grid> <m:Map x:Name="Map" Mode="Aerial" CredentialsProvider="_your_key_goes_here__"/> </Grid></s:SurfaceWindow>
3. It is designed with multi-touch in mind
The map uses WPF4’s manipulation events for scaling, translation and rotation – providing a consistent familiar experience for Microsoft Surface users. The WPF control supports full rotation and inertia with options to turn both off. Plus, infinite scroll maps, touch to lat/lon to pixel conversions (think touch to add a pushpin) and the ability to plug into the Bing Maps REST API for geocoding and routing or the Bing API for search.
Want to learn more about the WPF map control? Check out the Bing Team Blog, or check out the documentation that is part of the download.
Luis CabreraPlatform Program ManagerMicrosoft Surface
Congrats for the control! Is it working for the Surface v1.0?
Thanks in advanced,
that's exactly what I need. It works great in Surface 2.0 with the InputSimulator.
Thanks a lot and greetings from Germany
@Pau... It will work on top of WPF4. Since Surface v1 does not support HID input it will not just work... That said there are some workarounds to route Surface v1 input to a WPF 4 application.
See nui.joshland.org/.../how-to-write-surface-applications-with.html for more information.
This is very good news, I've been waiting on this control for sometime. Any idea when the control will support TileLayers? This is critical for weather related apps...
Hi. How do I get the mile/kilometer equivalent of the map's zoom level property? I need to know the distance between the ground and the camera. Thanks.
Hi Luis, do you know how to let Bing map recognize a tagged object as a permanent point on map? Thanks.