本文整理汇总了C#中Windows.GetIntermediatePoints方法的典型用法代码示例。如果您正苦于以下问题:C# Windows.GetIntermediatePoints方法的具体用法?C# Windows.GetIntermediatePoints怎么用?C# Windows.GetIntermediatePoints使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Windows
的用法示例。
在下文中一共展示了Windows.GetIntermediatePoints方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Canvas_PointerMoved
private void Canvas_PointerMoved(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
{
foreach (var point in e.GetIntermediatePoints(canvas))
{
if (point.IsInContact)
{
selectionEndIndex = GetHitIndex(point.Position);
}
}
canvas.Invalidate();
e.Handled = true;
}
示例2: _root_PointerMoved
void _root_PointerMoved(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
{
gestureRecognizer.ProcessMoveEvents(e.GetIntermediatePoints(null));
}
示例3: InkingArea_PointerMoved
void InkingArea_PointerMoved(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
{
var pointerPoint = e.GetCurrentPoint(InkingArea);
if (pointerId == (int)pointerPoint.PointerId)
{
switch (inkManager.Mode)
{
case Windows.UI.Input.Inking.InkManipulationMode.Erasing:
// Check if something has been erased.
// In erase mode InkManager::ProcessPointerUpdate returns an invalidate
// rectangle: if it is not degenerate something has been erased
// In erase mode we don't bother processing intermediate points
var invalidateRect = (Windows.Foundation.Rect)inkManager.ProcessPointerUpdate(e.GetCurrentPoint(InkingArea));
if (invalidateRect.Height != 0 && invalidateRect.Width != 0)
{
// We don't know what has been erased so we clear the render
// and add back all the ink saved in the ink manager
renderer.Clear();
renderer.AddInk(inkManager.GetStrokes());
}
break;
case Windows.UI.Input.Inking.InkManipulationMode.Inking:
case Windows.UI.Input.Inking.InkManipulationMode.Selecting:
// Process intermediate points
var intermediatePoints = e.GetIntermediatePoints(InkingArea);
for (int i = intermediatePoints.Count - 1; i >= 0; i--)
{
inkManager.ProcessPointerUpdate(intermediatePoints[i]);
}
// Live rendering
renderer.UpdateLiveRender(pointerPoint);
break;
}
}
}
示例4: OnSwipeAreaPointerMoved
void OnSwipeAreaPointerMoved(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs args)
{
this.swipeAreaGestureRecognizer.ProcessMoveEvents(args.GetIntermediatePoints(this.SwipeArea));
}
示例5: OnLogoPointerMoved
void OnLogoPointerMoved(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs args)
{
this.logoGestureRecognizer.ProcessMoveEvents(args.GetIntermediatePoints(this.logoImage));
}
示例6: OnPointerMoved
private void OnPointerMoved(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs args)
{
// Route the events to the gesture recognizer.
// All intermediate points are passed to the gesture recognizer in
// the coordinate system of the reference element.
this._gestureRecognizer.ProcessMoveEvents(args.GetIntermediatePoints(this._reference));
// Mark event handled, to prevent execution of default event handlers
args.Handled = true;
}
示例7: OnPointerMoved
void OnPointerMoved(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs args)
{
this.gestureRecognizer.ProcessMoveEvents(args.GetIntermediatePoints(mainGrid));
}
示例8: OnPointerMoved
void OnPointerMoved(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs args)
{
this.gestureRecognizer.ProcessMoveEvents(args.GetIntermediatePoints(this.reference));
args.Handled = true;
}