It should be look like this. When pushpin is clicked.
This is my XAML.
<my:Pushpin Name="pin1" Location="60.285323,24.943501" Template="{StaticResource normalPushPin}" MouseLeftButtonUp="Location1_Popup"/>
This my Location1_Popup method. I don't know what to write.
private void Location1_Popup(object sender, MouseButtonEventArgs e)
{
MessageBox.Show("Location1 has been clicked");
}
Thanks in advance.
You need to make now your popup visible in the MouseDown Event.
For examples, please have a look the sourcecode.
http://www.windowsphonegeek.com/upload/articles/WPPinPopup-Alternatives.zip
private void Location1_Popup(object sender, MouseButtonEventArgs e)
{
BlackRegionWithContent.Visible = Visibility.Visible;
}