private void RootGrid_Tapped(object sender, TappedRoutedEventArgs e) { Button ancestor = VisualTreeHelperExtensions.GetFirstAncestorOfType <Button>((DependencyObject)e.OriginalSource); if (ancestor == null) { ShowEffectPropertyFlyout(); } }
private void RootGrid_Tapped(object sender, TappedRoutedEventArgs e) { Button ancestor = VisualTreeHelperExtensions.GetFirstAncestorOfType <Button>((DependencyObject)e.OriginalSource); if (ancestor == null) { ShowEffectPropertyFlyout(); } }