/// <summary>
        /// Configures the manipulations that are enabled.
        /// </summary>
        /// <param name="scale">Boolean value that indicates if the manipulation target can be scaled.</param>
        /// <param name="rotate">Boolean value that indicates if the manipulation target can be rotated.</param>
        /// <param name="translate">Boolean value that indicates if the manipulation target can be translated.</param>
        /// <param name="inertia">Boolean value that indicates if manipulation inertia is enabled after rotate/translate.</param>
        public void Configure(bool scale, bool rotate, bool translate, bool inertia)
        {
            var settings = new Windows.UI.Input.GestureSettings();

            if (scale)
            {
                settings |= Windows.UI.Input.GestureSettings.ManipulationScale;
                if (inertia)
                {
                    settings |= Windows.UI.Input.GestureSettings.ManipulationScaleInertia;
                }
            }
            if (rotate)
            {
                settings |= Windows.UI.Input.GestureSettings.ManipulationRotate;
                if (inertia)
                {
                    settings |= Windows.UI.Input.GestureSettings.ManipulationRotateInertia;
                }
            }
            if (translate)
            {
                settings |= Windows.UI.Input.GestureSettings.ManipulationTranslateX |
                            Windows.UI.Input.GestureSettings.ManipulationTranslateY;
                if (inertia)
                {
                    settings |= Windows.UI.Input.GestureSettings.ManipulationTranslateInertia;
                }
            }
            _gestureRecognizer.GestureSettings = settings;

            _gestureRecognizer.ShowGestureFeedback = true;
            Windows.UI.Input.CrossSlideThresholds cst = new Windows.UI.Input.CrossSlideThresholds();
            cst.SelectionStart = 2;
            cst.SpeedBumpStart = 3;
            cst.SpeedBumpEnd   = 4;
            cst.RearrangeStart = 5;
            _gestureRecognizer.CrossSlideHorizontally = true;
            _gestureRecognizer.CrossSlideThresholds   = cst;

            ConfigureHandlers(scale || rotate || translate);
        }
        /// <summary>
        /// Configures the manipulations that are enabled.
        /// </summary>
        /// <param name="scale">Boolean value that indicates if the manipulation target can be scaled.</param>
        /// <param name="rotate">Boolean value that indicates if the manipulation target can be rotated.</param>
        /// <param name="translate">Boolean value that indicates if the manipulation target can be translated.</param>
        /// <param name="inertia">Boolean value that indicates if manipulation inertia is enabled after rotate/translate.</param>
        public void Configure(bool scale, bool rotate, bool translate, bool inertia)
        {
            var settings = new Windows.UI.Input.GestureSettings();

            if (scale)
            {
                settings |= Windows.UI.Input.GestureSettings.ManipulationScale;
                //if (inertia)
                //{
                //    settings |= Windows.UI.Input.GestureSettings.ManipulationScaleInertia;
                //}
            }
            if (rotate)
            {
                settings |= Windows.UI.Input.GestureSettings.ManipulationRotate;
                //if (inertia)
                //{
                //    settings |= Windows.UI.Input.GestureSettings.ManipulationRotateInertia;
                //}
            }
            if (translate)
            {
                settings |= Windows.UI.Input.GestureSettings.ManipulationTranslateX |
                    Windows.UI.Input.GestureSettings.ManipulationTranslateY;
                if (inertia)
                {
                    settings |= Windows.UI.Input.GestureSettings.ManipulationTranslateInertia;
                }
            }
            _gestureRecognizer.GestureSettings = settings;

            _gestureRecognizer.ShowGestureFeedback = true;
            Windows.UI.Input.CrossSlideThresholds cst = new Windows.UI.Input.CrossSlideThresholds();
            cst.SelectionStart = 2;
            cst.SpeedBumpStart = 3;
            cst.SpeedBumpEnd = 4;
            cst.RearrangeStart = 5;
            _gestureRecognizer.CrossSlideHorizontally = true;
            _gestureRecognizer.CrossSlideThresholds = cst;

            ConfigureHandlers(scale || rotate || translate);
        }