示例#1
0
        private static void OnPivotPointChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            Manipulable man = (Manipulable)sender;

            man._mprocessor.PivotPointX = (float)man.PivotPoint.X;
            man._mprocessor.PivotPointY = (float)man.PivotPoint.Y;
        }
示例#2
0
        private static void OnElasticMarginChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            Manipulable man = (Manipulable)sender;

            man._iprocessor.ElasticMarginBottom = (float)man.ElasticMargin.Bottom;
            man._iprocessor.ElasticMarginLeft   = (float)man.ElasticMargin.Left;
            man._iprocessor.ElasticMarginRight  = (float)man.ElasticMargin.Right;
            man._iprocessor.ElasticMarginTop    = (float)man.ElasticMargin.Top;
        }
示例#3
0
        private static void OnBoundaryChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            Manipulable man = (Manipulable)sender;

            man._iprocessor.BoundaryBottom = (float)man.Boundary.Bottom;
            man._iprocessor.BoundaryLeft   = (float)man.Boundary.Left;
            man._iprocessor.BoundaryRight  = (float)man.Boundary.Right;
            man._iprocessor.BoundaryTop    = (float)man.Boundary.Top;
        }
示例#4
0
        private static void OnExpansionDecelerationChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            Manipulable man = (Manipulable)sender;

            man._iprocessor.DesiredExpansionDeceleration = (float)man.ExpansionDeceleration;
        }
示例#5
0
        private static void OnMinimumScaleRotateRadiusChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            Manipulable man = (Manipulable)sender;

            man._mprocessor.MinimumScaleRotateRadius = (float)man.MinimumScaleRotateRadius;
        }
示例#6
0
        private static void OnSupportedManipulationsChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            Manipulable man = (Manipulable)sender;

            man._mprocessor.SupportedManipulations = (MANIPULATION_PROCESSOR_MANIPULATIONS)man.SupportedManipulations;
        }