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


C# Input.ManipulationStartedRoutedEventArgs类代码示例

本文整理汇总了C#中Windows.UI.Xaml.Input.ManipulationStartedRoutedEventArgs的典型用法代码示例。如果您正苦于以下问题:C# ManipulationStartedRoutedEventArgs类的具体用法?C# ManipulationStartedRoutedEventArgs怎么用?C# ManipulationStartedRoutedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ManipulationStartedRoutedEventArgs类属于Windows.UI.Xaml.Input命名空间,在下文中一共展示了ManipulationStartedRoutedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: HandlePlayerControlProgressBarBezzelManipulationStarted

        private void HandlePlayerControlProgressBarBezzelManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
        {
            ProgressBarScrubView.Visibility = Visibility.Visible;

            BindingExpression bindingExpression = PlayerControlProgressBarCompleted.GetBindingExpression(Rectangle.WidthProperty);
            savedWidthBinding = bindingExpression.ParentBinding;
        }
开发者ID:jevonsflash,项目名称:ProjectMato,代码行数:7,代码来源:LandingPage.xaml.cs

示例2: OnManipulationStarted

 protected override void OnManipulationStarted(ManipulationStartedRoutedEventArgs e)
 {
     base.OnManipulationStarted(e);
     
     if (Action != null)
     {
         Action.OnManipulationStarted(e);
     }
 }
开发者ID:SuperMap,项目名称:iClient-for-Win8,代码行数:9,代码来源:MapActionPart.cs

示例3: ImageOnManipulationStarted

        private void ImageOnManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
        {
            var image = (Image)sender;
            image.Opacity = 0.4;

            var transform = (CompositeTransform)image.RenderTransform;
            startTranslation = new Point(transform.TranslateX, transform.TranslateY);
            startRotation = transform.Rotation;
            startScale = transform.ScaleX;
        }
开发者ID:fvioz,项目名称:Surface,代码行数:10,代码来源:MainPage.xaml.cs

示例4: _contentGrid_ManipulationStarted

        private void _contentGrid_ManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
        {
            if (e.PointerDeviceType != PointerDeviceType.Touch)
            {
                return;
            }
            if (manipulationStatus == ManipulationStatus.None)
            {
                if (PivotItem != null && FrozenColumns > 0)
                {
                    var pt = e.Position;
                    pt = this.TransformToVisual(_columnHeaderPanel).TransformPoint(pt);

                    var fx = _columnHeaderPanel.Columns.GetFrozenSize();
                    // adjust for scroll position
                    var sp = _columnHeaderPanel.ScrollPosition;
                    if (pt.X < 0 || pt.X > fx) pt.X -= sp.X;
                    var column = _columnHeaderPanel.Columns.GetItemAt(pt.X);
                    if (FrozenColumns > column)
                    {
                        startingCrossSlideLeft = startingCrossSlideRight = true;
                    }
                }

                if (_header != null)
                {
                    var pt = e.Position;
                    pt = this.TransformToVisual(_header).TransformPoint(pt);
                    var rect = new Rect(0, 0, _header.ActualWidth, _header.ActualHeight);
                    if (rect.Contains(pt))
                    {
                        if (PivotItem != null)
                        {
                            startingCrossSlideLeft = startingCrossSlideRight = true;
                        }
                        manipulationOnHeaderOrFooter = true;
                    }
                }

                if (_footer != null)
                {
                    var pt = e.Position;
                    pt = this.TransformToVisual(_footer).TransformPoint(pt);
                    var rect = new Rect(0, 0, _footer.ActualWidth, _footer.ActualHeight);
                    if (rect.Contains(pt))
                    {
                        if (PivotItem != null)
                        {
                            startingCrossSlideLeft = startingCrossSlideRight = true;
                        }
                        manipulationOnHeaderOrFooter = true;
                    }
                }
            }
        }
开发者ID:GJian,项目名称:UWP-master,代码行数:55,代码来源:DataGridTouchMethods.cs

示例5: TouchArea_ManipulationStarted

 void TouchArea_ManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
 {
     // reset the animation
     // todo: wonder if there should be a method to remove a certain key frame?
     // so I'd only need to remove the keyframe (_animation.InsertKeyFrame(1.0f, new Vector3());)
     // rather than create a new animation instance
     _x = 0.0f;
     _animation = _compositor.CreateVector3KeyFrameAnimation();
     _animation.InsertExpressionKeyFrame(0.0f, "touch.Offset");
     _animation.SetReferenceParameter("touch", _touchAreaVisual);
 }
开发者ID:h82258652,项目名称:EffectsAndAnimationsWinComposition,代码行数:11,代码来源:MainPage.xaml.cs

示例6: OnDialerDragStart

        protected void OnDialerDragStart(object sender, ManipulationStartedRoutedEventArgs e)
        {
            DialerTransform.CenterX = Width / 2;
            DialerTransform.CenterY = Height / 2;
            
            startAngle = DialerTransform.Angle;

            if (DragBegin != null)
            {
                DragBegin(this, null);
            }
        }
开发者ID:chandrachivukula,项目名称:hue,代码行数:12,代码来源:HueDialerControl.xaml.cs

示例7: MonitorManipulationStarted

        void MonitorManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
        {
            _xOffsetStartValue = e.Position.X;
            _yOffsetStartValue = e.Position.Y; 
            
            if (Movement != null)
                Movement(this, new MovementMonitorEventArgs
                {
                    X = _xOffsetStartValue,
                    Y = _yOffsetStartValue
                });

			e.Handled = true;
        }
开发者ID:selaromdotnet,项目名称:Coding4FunToolkit,代码行数:14,代码来源:MovementMonitor.cs

示例8: Grid_ManipulationStarted

        private void Grid_ManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
        {

        }
开发者ID:kusl,项目名称:vlcwinrt,代码行数:4,代码来源:PlayVideo.xaml.cs

示例9: StartSwipe

 private void StartSwipe(object sender, ManipulationStartedRoutedEventArgs e)
 {
     startPosition = e.Position.X;
     verticalStartPosition = e.Position.Y;
 }
开发者ID:diagonalwalnut,项目名称:GodTools,代码行数:5,代码来源:slide11.xaml.cs

示例10: OnManipulationStarted

 private void OnManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
 {
     manipulationDistance = 0.0;
     isManipulationActive = true;
 }
开发者ID:TheNewDaysDawn,项目名称:UWP-SQLite-Sample,代码行数:5,代码来源:CoverFlow.cs

示例11: OnManipulationStarted

        /// <summary>
        /// Called before the ManipulationStarted event occurs.
        /// </summary>
        /// <param name="e">Event data for the event.</param>
        /// <remarks>
        /// This is used for touch scrolling.
        /// </remarks>
        protected override void OnManipulationStarted(ManipulationStartedRoutedEventArgs e)
        {
            this.scroller = 0d;
            e.Handled = true;

            base.OnManipulationStarted(e);
        }
开发者ID:yiyi99,项目名称:RemoteTerminal,代码行数:14,代码来源:ScreenDisplay.cs

示例12: grid_ManipulationStarted

 private void grid_ManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
 {
     _timer?.Stop();
 }
开发者ID:haroldma,项目名称:Audiotica,代码行数:4,代码来源:CurtainPrompt.cs

示例13: DrawCanvas_ManipulationStarted

 private void DrawCanvas_ManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
 {
     this.points = new List<Windows.Foundation.Point>();
     this.anchorPoint = e.Position;
     this.points.Add(
         new Windows.Foundation.Point(
             e.Position.X / DrawCanvas.ActualWidth,
             e.Position.Y / DrawCanvas.ActualHeight));
 }
开发者ID:aides,项目名称:heartchat,代码行数:9,代码来源:MainPage.xaml.cs

示例14: clippingPanel_ManipulationStarted

 private void clippingPanel_ManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
 {
     prePositon = e.Position;
     if (prePositon.X <= 5 && prePositon.Y <= 5)
     {
         positon = POSITIONS.LEFTTOP;
     }
     else if (prePositon.X >= ((sender as RelativePanel).ActualWidth - 5) && prePositon.Y <= 5)
     {
         positon = POSITIONS.RIGHTTOP;
     }
     else if (prePositon.X <= 5 && prePositon.Y >= ((sender as RelativePanel).ActualHeight - 5))
     {
         positon = POSITIONS.LEFTBUTTOM;
     }
     else if (prePositon.X >= ((sender as RelativePanel).ActualWidth - 5) && prePositon.Y >= ((sender as RelativePanel).ActualHeight - 5))
     {
         positon = POSITIONS.RIGHTBUTTOM;
     }
     else
     {
         positon = POSITIONS.UNKNOWN;
     }
 }
开发者ID:DXChinaTE,项目名称:ImageingAndProjectionTemplate,代码行数:24,代码来源:PictureEditorWP.xaml.cs

示例15: OnManipulationStarted

        private void OnManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
        {
            _isAllowedToDragVertically = true;
            _isAllowedToDragHorizontally = true;

            _isDragging = false;
        }
开发者ID:selaromdotnet,项目名称:Coding4FunToolkit,代码行数:7,代码来源:LoopingSelector.cs


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