Window.Close method

Applies to Windows and Windows Phone

Closes the application window.

Syntax


public:
void Close()

Parameters

This method has no parameters.

Remarks

Windows Store apps typically use a single Window instance, and do not open and close additional Window instances. Additionally, you will not typically provide custom UI to enable users to close the app window.

The Closed event occurs when a Window closes.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.winmd

See also

Window

 

 

Show:
© 2014 Microsoft