private void ReadingControl_OnPointerEntered(object sender, PointerRoutedEventArgs e) { if (e.Pointer.PointerDeviceType == PointerDeviceType.Mouse || e.Pointer.PointerDeviceType == PointerDeviceType.Pen) { e.Handled = true; if (!ReadingControl.IsVisible()) { ReadingControl.Visibility = Visibility.Visible; } } }
private void UIElement_OnTapped(object sender, TappedRoutedEventArgs e) { e.Handled = true; ReadingControl.Visibility = ReadingControl.IsVisible() ? Visibility.Collapsed : Visibility.Visible; }