简体   繁体   中英

How to close NavigationWindow by a button of its page (VB WPF)

I am a new of VB WPF

Now I have a NavigetionWindow and set a page to be source,

in the page I place a button and I would like to close the whole application by pressing it,

how can I do it?

You can call Application.Shutdown() (this is C#), there are restrictions to this call so look at the MSDN link below for those restrictions. http://msdn.microsoft.com/en-us/library/system.windows.application.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM