Inheritance: Windows.UI.Xaml.Controls.Control
Beispiel #1
0
 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
     };
 }
Beispiel #2
0
 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
     };
 }