0
它應該看起來像這樣。當點擊圖釘時。圖釘按鈕在點擊地圖中點擊時,如何讓按鈕出現在圖釘上方?
這是我的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");
}
在此先感謝。
什麼是你的問題? – Nasenbaer
我應該在Location1_Popup方法中寫什麼? –