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
- Microsoft.Maps.MapControl.dll
- 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”
xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml”
xmlns:d=”http://schemas.microsoft.com/expression/blend/2008″ xmlns:mc=”http://schemas.openxmlformats.org/markup-compatibility/2006″
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.
