BlurEffect.MainPage.TouchArea_ManipulationStarted C# (CSharp) Method

TouchArea_ManipulationStarted() private method

private TouchArea_ManipulationStarted ( object sender, ManipulationStartedRoutedEventArgs e ) : void
sender object
e Windows.UI.Xaml.Input.ManipulationStartedRoutedEventArgs
return void
        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.CreateScalarKeyFrameAnimation();
            _animation.InsertExpressionKeyFrame(0.0f, "touch.Offset.X");
            _animation.SetReferenceParameter("touch", _touchAreaVisual);
        }