次の XAML があります。
<maps:Map x:Name="MyMap" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Height="410" Width="436" CartographicMode="Hybrid">
<toolkit:MapExtensions.Children>
<toolkit:Pushpin Visibility="Collapsed" x:Name="pushpin" Content="My Position"/>
</toolkit:MapExtensions.Children>
</maps:Map>
そして、ここに私のC#コードがあります:
string[] tmp = result.ToString().Split(' ');
MyMap.Center = new GeoCoordinate(double.Parse(tmp[0]), double.Parse(tmp[1]));
MapLayer layer0 = new MapLayer();
Pushpin pushpin0 = new Pushpin();
pushpin0.Visibility = Visibility.Visible;
pushpin0.GeoCoordinate = new GeoCoordinate(double.Parse(tmp[0]), double.Parse(tmp[1]));
MapOverlay overlay0 = new MapOverlay();
overlay0.Content = pushpin0;
overlay0.GeoCoordinate = new GeoCoordinate(double.Parse(tmp[0]), double.Parse(tmp[1]));
layer0.Add(overlay0);
画鋲が地図に表示されません。何が足りないのですか?