当前位置: 首页>>代码示例>>C#>>正文


C# Windows.GetIntermediatePoints方法代码示例

本文整理汇总了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;
 }
开发者ID:liuywg,项目名称:Win2D-Samples,代码行数:12,代码来源:TextLayouts.xaml.cs

示例2: _root_PointerMoved

 void _root_PointerMoved(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
 {
     gestureRecognizer.ProcessMoveEvents(e.GetIntermediatePoints(null));
 }
开发者ID:Nezz,项目名称:SharpDX,代码行数:4,代码来源:EffectRenderer.cs

示例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;
                }
            }
        }
开发者ID:oldnewthing,项目名称:old-Windows8-samples,代码行数:37,代码来源:Scenario1.xaml.cs

示例4: OnSwipeAreaPointerMoved

 void OnSwipeAreaPointerMoved(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs args)
 {
     this.swipeAreaGestureRecognizer.ProcessMoveEvents(args.GetIntermediatePoints(this.SwipeArea));
 }
开发者ID:ShineSong,项目名称:YokeEmulator,代码行数:4,代码来源:BattlePage.xaml.cs

示例5: OnLogoPointerMoved

 void OnLogoPointerMoved(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs args)
 {
     this.logoGestureRecognizer.ProcessMoveEvents(args.GetIntermediatePoints(this.logoImage));
 }
开发者ID:ShineSong,项目名称:YokeEmulator,代码行数:4,代码来源:BattlePage.xaml.cs

示例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;
        }
开发者ID:KryanChen,项目名称:multi-touch,代码行数:10,代码来源:InputProcessor.cs

示例7: OnPointerMoved

 void OnPointerMoved(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs args)
 {
     this.gestureRecognizer.ProcessMoveEvents(args.GetIntermediatePoints(mainGrid));
 }
开发者ID:ViktorMeduneckij,项目名称:CoinFlip-WP8.1-,代码行数:4,代码来源:FrameContainer.cs

示例8: OnPointerMoved

 void OnPointerMoved(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs args)
 {
     this.gestureRecognizer.ProcessMoveEvents(args.GetIntermediatePoints(this.reference));
     args.Handled = true;
 }
开发者ID:mbin,项目名称:Win81App,代码行数:5,代码来源:S2-Manipulations.xaml.cs


注:本文中的Windows.GetIntermediatePoints方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。