Window.Close Method
Definition
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.