SilverFlow.Controls.FloatingWindow.InertialMotion_Completed C# (CSharp) Method

InertialMotion_Completed() private method

Handles the Completed event of the InertialMotionStoryboard.
private InertialMotion_Completed ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void
        private void InertialMotion_Completed(object sender, EventArgs e)
        {
            // Save current window position reading it from the TranslateTransform object
            Position = GetCurrentWindowPosition();

            // Stop the animation affecting its target property
            inertialMotionStoryboard.Remove(contentRoot as FrameworkElement);
            windowAction = WindowAction.None;
        }
FloatingWindow