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

OnMouseLeftButtonUp() protected method

Executed when mouse left button is up.
protected OnMouseLeftButtonUp ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs The data for the event.
return void
        protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
        {
            base.OnMouseLeftButtonUp(e);

            if (windowAction == WindowAction.Move)
            {
                InertialMotion motion = inertiaController.GetInertialMotionParameters(
                    this.FloatingWindowHost.HostPanel.GetActualBoundingRectangle(), this.BoundingRectangle);

                if (motion != null)
                {
                    windowAction = WindowAction.InertialMotion;
                    contentRoot.AnimateTranslateTransform(inertialMotionStoryboard, motion.EndPosition, motion.Seconds, motion.EasingFunction);
                }
            }

            if (isMouseCaptured)
            {
                contentRoot.ReleaseMouseCapture();
                isMouseCaptured = false;
            }

            if (windowAction != WindowAction.InertialMotion)
                windowAction = WindowAction.None;
        }
FloatingWindow