示例#1
0
 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;
         }
     }
 }
示例#2
0
 private void UIElement_OnTapped(object sender, TappedRoutedEventArgs e)
 {
     e.Handled = true;
     ReadingControl.Visibility = ReadingControl.IsVisible() ? Visibility.Collapsed : Visibility.Visible;
 }