in TrafficApp/MainPage.xaml.cs [628:639]
private void EnterMapSelectionMode(object sender, RoutedEventArgs e)
{
this.isMapSelectionEnabled = true;
this.InputMap.MapTapped += InputMap_MapTapped;
this.InputMap.MapHolding -= InputMap_MapHolding;
this.LocationsView.Visibility = Visibility.Collapsed;
this.MapSelectionModeMessage.Visibility = Visibility.Visible;
this.ListDisplayModeButton.IsEnabled = false;
this.AddCurrentLocationButton.IsEnabled = false;
this.AddNewLocationButton.IsEnabled = false;
Flyout.GetAttachedFlyout(this.GetTemplateRootForLocation(this.locationInEdit)).Hide();
}