Getting Started
Creating a Windows Phone Application:
- Open Visual Studio 2010.
- Go to File => New => Project
- Select Silverlight for Windows Phone from the Installed templates and choose Windows Phone Application
- Enter the Name and choose the location.
Click OK.

Image 1.
Before using this control you have to do a few things.
Create a Bing Maps developer Account
- Create a Bing Map developer account. Go to https://www.bingmapsportal.com/ and click Create.
- Sign in using your Windows Live ID. If you do not have a Windows Live account then you can get one from https://www.bingmapsportal.com/SignIn/Logon . Fill in the required information and click Save.
Create Bing Map Keys
After creating a developer account you can get five bing map keys
- Go to https://www.bingmapsportal.com/ and click sign in using your windows Live ID.
- Click on Create or view keys link in left bar.
- Now fill the Application Name, Application URL, Application Type.
- Click Submit.

Image 2.

Image 3.
Now add reference of Bing Maps Silverlight Control.

Image 4.
Now add both DLLs in toolbox using choose items.
Now drag and drop Map control from toolbox onto page.
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
<my2:Map HorizontalAlignment="Left" Margin="14,23,0,0"
Name="map2" VerticalAlignment="Top"
Loaded="map2_Loaded"
Height="534"
Width="436"
/>
</Grid>
.cs
public BingMap()
{
InitializeComponent();
SupportedOrientations = SupportedPageOrientation.Portrait | SupportedPageOrientation.Landscape;
}
private void map2_Loaded(object sender, RoutedEventArgs e)
{
this.map2.NavigationVisibility = System.Windows.Visibility.Collapsed;
}
Now build and run the project.
Image 5.
Here you can see a white bar to remove this white bar you have to put Application Key in like this.
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
<my2:Map HorizontalAlignment="Left" Margin="14,23,0,0"
Name="map2" VerticalAlignment="Top"
Loaded="map2_Loaded"
Height="534"
Width="436"
CredentialsProvider="Ahk5en93JIJlP4ObG_CqLoLgWU22jhPFJbe52bOTnLEQjw_hYxB3EtthoVLt1COu"
/>
</Grid>
Now run application again.
Image 6.
We are done here, if questions or comments drop me a line in comments section.

Anoop TiwariPosted Oct 28, 2011, 4:21 AM
Can we find distance between two point
Faheem AzamPosted Jun 8, 2011, 8:52 PM
Dear i knew it before but please tell me that how can i change locations of it and can move to any other place easily. Thanks
Mike GoldPosted Feb 8, 2011, 11:00 PM
Good complete piece on getting Bing Maps going Raj. I'm enjoying your articles and tips. Keep up the good work!
Mahesh ChandPosted Feb 7, 2011, 8:18 AM
Good. Can you also use bing map to show directions from one place to other.