IVsWindowFrame windowFrame = GetWindowFrame(); bool isVisible = false; if (windowFrame != null) { int hr = windowFrame.IsVisible(out isVisible); ErrorHandler.ThrowOnFailure(hr); } Console.WriteLine($"Window frame is {(isVisible ? "visible" : "not visible")}");
IVsWindowFrame windowFrame = GetWindowFrame(); bool isVisible = false; if (windowFrame != null) { int hr = windowFrame.IsVisible(out isVisible); ErrorHandler.ThrowOnFailure(hr); if (isVisible) { hr = windowFrame.Hide(); ErrorHandler.ThrowOnFailure(hr); Console.WriteLine("Window frame has been hidden"); } }The IVsWindowFrame interface is part of the Microsoft.VisualStudio.Shell.Interop library, which is included in the Visual Studio SDK.