private void CastIcon_Tapped(object sender, Windows.UI.Xaml.Input.TappedRoutedEventArgs e) { if (CastDialog == null) { CastDialog = new CastDialog { Chromecasts = Chromecasts, CastButton = this } } ; if (_popup != null) { CastDialog.Visibility = Visibility.Visible; return; } _popup = new Popup { Child = CastDialog, IsOpen = true, HorizontalAlignment = HorizontalAlignment.Center }; }
private void CastIcon_Tapped(object sender, Windows.UI.Xaml.Input.TappedRoutedEventArgs e) { if (CastDialog == null) CastDialog = new CastDialog {Chromecasts = Chromecasts, CastButton = this}; if (_popup != null) { CastDialog.Visibility = Visibility.Visible; return; } _popup = new Popup { Child = CastDialog, IsOpen = true, HorizontalAlignment = HorizontalAlignment.Center }; }