Bing maps silverlight control in c#
Posted
by
Dan Sewell
on Stack Overflow
See other posts from Stack Overflow
or by Dan Sewell
Published on 2010-12-25T20:43:05Z
Indexed on
2010/12/25
20:54 UTC
Read the original article
Hit count: 601
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>
© Stack Overflow or respective owner