title: How to add a PushPin item to a map? Windows Phone
body: <p>I'm trying to draw a pushpin to a map in the map page of my application but when I add the code to overlay a pushpin to the map, I get the following errors:</p>
  
  <blockquote>
    <p>The type or namespace name <code>PushPin</code> could not be found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p><code>Microsoft.Phone.Maps.Controls.Map</code> does not contain a definition for <code>Children</code> and no extension method <code>Children</code> accepting a first argument of type <code>Microsoft.Phone.Maps.Controls.Map</code> could be found</p>
  </blockquote>
  
  <p>I understand from this that I'm missing a reference? I have references for <code>controls.maps</code> and <code>contols.toolkit</code>, so I can't understand why.</p>
  
  <p>Also this is the code I'm using to draw the pushpin:</p>
  
  <pre><code>PushPin myPin = new Pushpin();
  myPin.Location = MyGeoPosition;
  myPin.Content = "My car";
  MyMap.Children.Add(myPin);
  </code></pre>