Few years ago, back in 2008, when Windows 7 M3 (pre-beta) was released at Microsoft PDC 2008 conference (which I was proud attendee of), I wrote a sample Windows 7 Location-aware Navigation Application, which I then published to MSDN Code Gallery here.
It required me to:
- Install Windows 7 M3 + all Dev Tools
- Install and use Virtual Earth 3D (which later transformed into Bing Maps 3D, and then discontinued),
- Create new WPF 4 App
- use Windows 7 Integration Library that provided me access to Windows 7 Sensor and Location Platform – LocationProvider,
- use new WPF Ribbon control,
- I also had specific GPS device with GPS driver,
- use Windows 7 Integration Library to include basic multi-touch handling (zoom, panning was provided by OS),
- Combine all of that stuff together
All of these things were like experiments. Now, 3 years after that, and after epochal BUILD conference (that I wasn’t proud attendee of, though), I‘ve decided to repeat that experiment and look what it will take for me to write a Windows 8 Location-aware Navigation Application.
Well, it required a few things:
- Install Windows 8 Developer Preview with Apps & Dev Tools (x64)
- Install recently released Bing Maps WPF Control
- Create new WPF 4.5 App
- Reference the Bing Maps Control + get API Key for it
- Reference Windows.Devices.Geolocation.winmd (and few other WinRT WinMD files) (yes, you can do that!)
- Use Async access to Geolocation provider (like in Geolocation sample for WinRT, but make it optimized for WPF)
In this case, I didn’t use any Ribbon control, well, but, most important, I didn’t have to write up any multi-touch UI handling, it’s all done as magic for you in the Bing Maps WPF Control! You don’t need any specific Geolocation Sensor, Windows 8 has it’s own based on WiFi and IP for you, built-in!
Well, here’s a really short video showing the app, it’s as simple as that, yes