Control what red x does on window using wpf forms in c# -


i developing application in c# using wpf. control red x (close window) does. @ moment, press red x , closed current window , continues running rest of program. not want happen. instead when x pressed want whole program finish.

can done?

thanks help

you want event handling on window.closed event, or override window.onclosed method , put code shutdown program in there.

http://msdn.microsoft.com/en-us/library/system.windows.window.onclosed.aspx


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -