I'm using a WPF Bing map within my application and its currently set up to center at a certain latitude longitude, I was wondering if instead of having a set latitude longitude that instead I could display a text box and search button where the user could enter the latitude longitude of there chosen location. If so what code should I add?
Xaml
Title="MainWindow" Height="320.149" Width="475.746">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0*"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<m:Map CredentialsProvider="My Key" Mode="AerialWithLabels"
Center="51.521347, -0.138983" ZoomLevel="16" x:Name="BingMap" Grid.ColumnSpan="2">
<TextBox x:Name="txtwhere" HorizontalAlignment="Left" Height="35" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="126" Margin="315,10,0,0" />
<Button x:Name="Btnsearch" Content="Search" HorizontalAlignment="Left" Height="28" VerticalAlignment="Top" Width="112" Margin="316,57,0,0" Click="Btnsearch_Click"/>
VB
Partial Public Class MainWindow
Inherits Window
Public Sub New()
InitializeComponent()
BingMap.Focus()
'Set map to Aerial Mode with labels
BingMap.Mode = New AerialMode(True)
End Sub