Is there a command in WFF to close the application from context menu. e.g. the same context menu which you get by right clicking on the title bar on any window. There all loads of standard commands, but I am struggling to find exit command.
A:
There is an ApplicationCommands.Close, but there is not an ApplicationCommands.Exit.
See this thread (for example) to find alternatives (such as creating a custom command).
Wonko the Sane
2010-10-05 15:55:00
+1
A:
Unfortunately this doesn't exist. You'll have to implement a custom command and call
Application.Current.Exit();
Jeremy
2010-10-05 15:55:37
It is probably Application.Current.Shutdown(); as Application.Current.Exit(); is an event.
Vitalij
2010-10-07 13:56:02