Esta documentación está archivada y no tiene mantenimiento.

Window.Hide (Método)

Makes a window invisible.

Espacio de nombres: System.Windows
Ensamblado: PresentationFramework (en presentationframework.dll)

public void Hide ()
public void Hide ()
public function Hide ()
No se pueden utilizar métodos en XAML.

Tipo de excepciónCondición

InvalidOperationException

Hide is called on a window that is closing (Closing) or has been closed (Closed).

A window is not closed when it is hidden, and neither Closing nor Closed events are raised. Instead, its Visibility property is set to Hidden.

If a window is the application's MainWindow, and the application's ShutdownMode is OnMainWindowClose, the application will not shutdown. Likewise, the application will not shutdown if a window is the only window, and the application's shutdown mode is OnLastWindowClose.

Microsoft .NET Framework 3.0 es compatible con Windows Vista, Microsoft Windows XP SP2 y Windows Server 2003 SP1.

.NET Framework

Compatible con: 3.0
Mostrar: