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

204 views Asked by At

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?

1

There are 1 answers

1
TYY On

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