2012-11-27 39 views
0

它应该看起来像这样。当点击图钉时。图钉按钮在点击地图中点击时,如何让按钮出现在图钉上方?

enter image description here

这是我的XAML。

<my:Pushpin Name="pin1" Location="60.285323,24.943501" Template="{StaticResource normalPushPin}" MouseLeftButtonUp="Location1_Popup"/> 

这是我的Location1_Popup方法。我不知道该写什么。

private void Location1_Popup(object sender, MouseButtonEventArgs e) 
    { 
     MessageBox.Show("Location1 has been clicked"); 
    } 

在此先感谢。

+0

什么是你的问题? – Nasenbaer

+0

我应该在Location1_Popup方法中写什么? –

回答