tags:

views:

35

answers:

2

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
+1  A: 

Unfortunately this doesn't exist. You'll have to implement a custom command and call

Application.Current.Exit();
Jeremy
It is probably Application.Current.Shutdown(); as Application.Current.Exit(); is an event.
Vitalij