WTF: ApplicationCommands.NotACommand Property
Ok, this seems like the WTF Award for June: NotACommand, is it really useless? Ummm?
In the case of the use of “NotACommand” Property, what do you use this for? Seriously, WHAT?!
Let’s say you are working on a project and you need to disable the ApplicationCommand.Save when CTRL+S is pressed for certain users, let’s say a retail situation. You could insert the following:
<DocumentViewer.InputBindings> <KeyBinding Key="S" Modifiers="Control" Command="ApplicationCommands.NotACommand" /> </DocumentViewer.InputBindings>
In this case the CTRL+S function would not do anything.
So I guess this is not a potential for the WTF Award for the month.
h