Visual Studio updates, and so we do! HERE Maps import

Have you already installed the new Visual Studio 2013 Update 2 RC?

If you have done so, and you followed our guide on how to create a map control into a Windows Phone or Windows app, you might have encoured in all of these errors:

Unknown type ‘MapControl’ in XML namespace ‘clr-namespace:Microsoft.Phone.Maps.Controls;assembly=Microsoft.Phone.Maps’

The name “Map” does not exist in the namespace “clr-namespace:Microsoft.Phone.Maps.Controls;assembly=Microsoft.Phone.Maps”.

The type ‘maps:Map’ was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.

What changed, exactly? The import way and the map control name itself!

Don’t pull your hair out, the solution is easily made. Just follow these two new guide lines!

New import to manage:

xmlns:Maps=”using:Windows.UI.Xaml.Controls.Maps”

New actual map creation:

<maps:MapControl/>

 

Rest looks unchanged, so far! I’ll keep you updated, don’t worry.
Happy mapping and happy coding! 😉

Rispondi

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...