text: Of course you can use a mix of XAML and code to work with the map. For example, it makes reasonable sense to create the map object in XAML:
  <my:Map:
  <my:Map
  private void button1_Click( object sender, RoutedEventArgs e){ map1 and naming conventions already defined - but often with slight name changes.
  If you already know the Silverlight desktop map control then you the same observation applies. In general things are organised in the same way but occasionally there are differences that have been introduced to allow the Phone control to work with other specifically phone hardware.
  function Button1_onclick()
  private void button1_Click( object sender, RoutedEventArgs e){ map1.Center=new GeoCoordinate(55, -1.5);}
  to make this work as written you also have to add
  using System.Device.Location;
  The GeoCoordinate class is used to create position aware applications not just mapping apps. As well as specifying position it can also be used to specify a velocity and direction of travel for example.
  You can adjust all of the other viewing parameters using similar methods and objects – just check the documentation.
  MyMap.SetView(map1.SetView( new GeoCoordinate(55, -1.5),15);
  Alternatively you can set the zoom in a separate step:
  map1.ZoomLevel = 17;
  map1.ZoomLevel = 17;
  In a real Windows Phone the user can zoom and pan the map using gestures but there is also a zoom control that you can display. This is useful when you are trying things out using the simulator:
  map1.ZoomBarVisibility = Visibility.Visible;
  Finally you can set the map mode using a statement similar to:
  map1.Mode = new AerialMode();
  map1.Mode = new AerialMode();
  you can also select RoadMode and customise the view using the properties of the mode objects.
  <ASIN:1430232196>
  <ASIN:1590597079>
  <ASIN:0672332221>
  <ASIN:1430232161>
  <ASIN:0470939079>