Opens a window and returns without waiting for the newly opened window to close.
Assembly: PresentationFramework (in PresentationFramework.dll)
When the Window class is instantiated, it is not visible by default. shows a window and returns immediately, without waiting for the window to be closed. Consequently, the opened window does not prevent users from interacting with other windows in the application. This type of window is called a modeless window. Common examples of modeless windows are properties windows, toolboxes, and palettes. To restrict a user to interacting with a specific window, the window must be opened by calling ShowDialog.
A window that is opened by calling does not automatically have a relationship with the window that opened it; specifically, the opened window does not know which window opened it. This relationship can be established using the Owner property and managed using the OwnedWindows property.
Calling is a synchronous operation that returns only after the Loaded event on the child window has been raised:
Setting Visibility, however, is an asynchronous operation that returns immediately:
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.