コード例 #1
0
ファイル: TextBlock.cs プロジェクト: RUSshy/ultraviolet
 /// <inheritdoc/>
 protected override void OnFingerUp(TouchDevice device, Int64 fingerID, Double x, Double y, Single pressure, RoutedEventData data)
 {
     if (device.GetIndexFromFingerID(fingerID) == 0)
     {
         LinkUtil.DeactivateTextLink(textLayoutCommands, this);
         LinkUtil.UpdateLinkCursor(textLayoutCommands, this, null);
     }
     base.OnFingerUp(device, fingerID, x, y, pressure, data);
 }
コード例 #2
0
ファイル: ScrollViewer.cs プロジェクト: RUSshy/ultraviolet
 /// <inheritdoc/>
 protected override void OnFingerMotion(TouchDevice device, Int64 fingerID, Double x, Double y, Double dx, Double dy, Single pressure, RoutedEventData data)
 {
     if (!data.Handled && device.GetIndexFromFingerID(fingerID) == 0)
     {
         if (dx != 0 && PART_HScroll != null)
         {
             PART_HScroll.Value -= dx;
         }
         if (dy != 0 && PART_VScroll != null)
         {
             PART_VScroll.Value -= dy;
         }
         data.Handled = true;
     }
     base.OnFingerMotion(device, fingerID, x, y, dx, dy, pressure, data);
 }