web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Nishant Rana’s Weblog / Using Bing Maps Silverlight...

Using Bing Maps Silverlight Control

Nishant Rana Profile Picture Nishant Rana 11,325 Microsoft Employee

To use Bing Maps Silverlight Control first we need to have Bing Map key with us, for this we need go to https://www.bingmapsportal.com/ (bing map account center) to create an account and generate a key for us.

Once we have the key, we need to download Bing Map Silverlight Control SDK.

After this is done, we need to create a Silverlight Application Project.

Add References to

  1. Microsoft.Maps.MapControl.dll
  2. Microsoft.Maps.MapControl.Commin.dll

We can found them at C:\Program Files\Bing Maps Silverlight Control\V1\Libraries.

Then make the following changes to MainPage.Xaml.

<UserControl x:Class=”MyBingApplication.MainPage”
xmlns:m=”clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl”

xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8221;

xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml&#8221;

xmlns:d=”http://schemas.microsoft.com/expression/blend/2008&#8243; xmlns:mc=”http://schemas.openxmlformats.org/markup-compatibility/2006&#8243;

mc:Ignorable=”d” d:DesignWidth=”640″ d:DesignHeight=”480″>

<Grid x:Name=”LayoutRoot”>

<m:Map x:Name=”myMap” CredentialsProvider=”OurBingMapKey” Mode=”AerialWithLabels” ></m:Map>

</Grid>
</UserControl>

Build the solution and run the OurApplicationtestpage.aspx.


Filed under: Bing Map, Silverlight Tagged: Bing Map, Silverlight

This was originally posted here.

Comments

*This post is locked for comments