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

RestoringMaximized_Completed() private method

Handles the Completed event of the Restoring Maximized window animation.
private RestoringMaximized_Completed ( object sender, EventArgs e ) : void
sender object The source of the event.
e EventArgs The instance containing the event data.
return void
        private void RestoringMaximized_Completed(object sender, EventArgs e)
        {
            restoreMaximizedStoryboard.Stop();
            restoreMaximizedStoryboard.Remove(this);

            this.Width = previousSize.Width;
            this.Height = previousSize.Height;
            this.Position = previousPosition;

            Focus();
            OnRestored(EventArgs.Empty);
        }
FloatingWindow