Makes a window invisible.
public: void Hide();
public void Hide ();
member this.Hide : unit -> unit
Public Sub Hide ()
If a window is the application's MainWindow and the application's ShutdownMode is OnMainWindowClose, the application does not shut down. Likewise, the application does not shut down if a window is the only window and the application's shutdown mode is OnLastWindowClose.
If you want to show and hide a window multiple times during the lifetime of an application, and you don't want to re-instantiate the window each time you show it, you can handle the Closing event, cancel it, and call the Hide method. Then, you can call Show on the same instance to re-open it.