Bing maps silverlight control in c#
- by Dan Sewell
Hello Chaps. Wondering if you could help me on this one.. Im trying to control my map with this c# code below. But for some reason its not doing anything when I call this method, and im not quite sure why?! Not sure if im using the .Equals properly?
C#
private void NW_zoom(object sender, ManipulationStartedEventArgs e)
{
GeoCoordinate abc = new GeoCoordinate(51.510, -0.1151);
Map.CenterProperty.Equals(abc);
var zoom = 12;
Map.ZoomLevelProperty.Equals(zoom);
}
XMAL map control:
<maps:Map ZoomLevel="10" Mode="Road" Margin="0,0,0,54" ZoomBarVisibility="Visible" ScaleVisibility="Visible" CredentialsProvider="xxxxxxx" Grid.Row="1">
<maps:Map.Center>
<device:GeoCoordinate Latitude="51.510669" Longitude="-0.11512800"/>
</maps:Map.Center>
<maps:MapLayer x:Name="QuakeLayer" Height="726" Width="477" />
</maps:Map>