private void pin_Tapped(object sender, TappedRoutedEventArgs e) { BusStationsPushPin selected = sender as BusStationsPushPin; StaticData.SelectedStationTotal = selected.Tag as StationTotal; //StationDetailFlyout stationDetailFlyout = new StationDetailFlyout(); //stationDetailFlyout.Show(); CustomControlGrid.Children.Clear(); StationDetailControl stationDetailControl = new StationDetailControl(map); stationDetailControl.HorizontalAlignment = HorizontalAlignment.Right; CustomControlGrid.Children.Add(stationDetailControl); CloseControl cc = new CloseControl(); cc.VerticalAlignment = VerticalAlignment.Top; cc.HorizontalAlignment = HorizontalAlignment.Right; CustomControlGrid.Children.Add(cc); }
/// <summary> /// This is attached with ExitButton. /// </summary> private void CloseMe() { CloseControl?.Invoke(); this.Dispose(); }