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

EnsureVisible() private method

Ensures the window is visible.
private EnsureVisible ( ) : void
return void
        private void EnsureVisible()
        {
            if (HostPanel != null && (Position.X >= HostPanel.ActualWidth || Position.Y >= HostPanel.ActualHeight))
            {
                Position = CenteredWindowPosition;
            }
        }
FloatingWindow