This article is going to describe how to use the Bing Map control in Windows Phone 7 using Silverlight.Getting StartedCreating a Windows Phone Application:
.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.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: