當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。