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; }
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; }
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; }
private static void OnExpansionDecelerationChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args) { Manipulable man = (Manipulable)sender; man._iprocessor.DesiredExpansionDeceleration = (float)man.ExpansionDeceleration; }
private static void OnMinimumScaleRotateRadiusChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args) { Manipulable man = (Manipulable)sender; man._mprocessor.MinimumScaleRotateRadius = (float)man.MinimumScaleRotateRadius; }
private static void OnSupportedManipulationsChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args) { Manipulable man = (Manipulable)sender; man._mprocessor.SupportedManipulations = (MANIPULATION_PROCESSOR_MANIPULATIONS)man.SupportedManipulations; }