private void MyMap_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (activationFunction) { e.Handled = true; MyMap.CheckingPushpin(e); } }