//==========================================================// /// <summary> /// Event handler for the manipulation processor's delta event. /// Occurs whenever the first time that the manipulation processor processes a /// group of manipulators /// </summary> /// <param name="sender">The manipulation processor that raised the event</param> /// <param name="e">The event args for the event</param> private void OnAffine2DManipulationStarted(object sender, Affine2DOperationStartedEventArgs e) { //Debug.Assert(!extrapolating); manipulating = true; // manipulationProcessor.PivotX = transformedCenter.X; // manipulationProcessor.PivotY = transformedCenter.Y; // manipulationProcessor.PivotRadius = Math.Max(Width, Height) / 2.0f; }
/// <summary> /// Unused /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnAffine2DManipulationStarted(object sender, Affine2DOperationStartedEventArgs e) { }
//==========================================================// /// <summary> /// Event handler for the manipulation processor's delta event. /// Occurs whenever the first time that the manipulation processor processes a /// group of manipulators /// </summary> /// <param name="sender">The manipulation processor that raised the event</param> /// <param name="e">The event args for the event</param> private void OnAffine2DManipulationStarted(object sender, Affine2DOperationStartedEventArgs e) { //Debug.Assert(!extrapolating); manipulating = true; // manipulationProcessor.PivotX = transformedCenter.X; // manipulationProcessor.PivotY = transformedCenter.Y; // manipulationProcessor.PivotRadius = Math.Max(Width, Height) / 2.0f; }
/// <summary> /// Handles the Affine2DManipulationStarted event of the ManipulationProcessor control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Microsoft.Surface.Presentation.Manipulations.Affine2DOperationStartedEventArgs"/> instance containing the event data.</param> private void ContentManipulationProcessor_Affine2DManipulationStarted(object sender, Affine2DOperationStartedEventArgs e) { _inertiaProcessor.End(); }
void manipulationProcessor_Affine2DManipulationStarted(object sender, Affine2DOperationStartedEventArgs e) { inertiaProcessor.End(); }