Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Window.Close Method

Definition

Namespace:
Microsoft.UI.Xaml

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Closes (destroys) the application window.

public:
 virtual void Close() = Close;
void Close();
public void Close();
function close()
Public Sub Close ()

Remarks

This method destroys the window. To hide the window without destroying it, call the Window.AppWindow.Hide method.

The Closed event occurs when a Window closes.

Applies to

See also


Feedback

Was this page helpful?