-api-id | -api-type |
---|---|
M:Microsoft.UI.Xaml.Hosting.WindowsXamlManager.Close |
winrt method |
Closes and asynchronously releases any resources used by this WindowsXamlManager.
Ensure that all asynchronous work has completed before exiting the thread on which the WindowsXamlManager was initialized. Some ways to do this include:
- Calling DispatcherQueueController.ShutdownQueueAsync and awaiting its completion.
- Running the top-level message pump until
PeekMessage
returnsFALSE
.