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

RestoreWindow() public method

Restores window state, size and its position.
public RestoreWindow ( ) : void
return void
        public void RestoreWindow()
        {
            switch (windowState)
            {
                case WindowState.Minimized:
                    if (previousWindowState == WindowState.Maximized)
                    {
                        Width = HostPanel.ActualWidth;
                        Height = HostPanel.ActualHeight;
                    }

                    windowState = previousWindowState;
                    VisualStateManager.GoToState(this, VSMSTATE_StateRestored, true);
                    break;

                case WindowState.Normal:
                    SetTopmost();
                    EnsureVisible();
                    break;

                case WindowState.Maximized:
                    SetTopmost();
                    break;
            }
        }
FloatingWindow