Open jascam opened 6 years ago
Hello N2Cheval
Thank you for using our sample request service! (http://1code.codeplex.com/wikipage?title=NEW%2c%20FREE%20Code%20Sample%20Request%20Service%20from%20Microsoft%20All-In-One%20Code%20Framework)
From your description, I learnt that you want a code sample that handles the key press by KeyBinding on the close command, and implement the close command using the MVVM pattern. It would need code-behind to implement the close command, but regarding the KeyBinding, it does not need code-behind.
Is I understanding correct?
Thanks Jialiang Ge
This comment was posted by Jialiang on 11/1/2010
That's right, but a bit more. Re-reading my question, unfortunately I think I'm asking two things; 1) Close current view from ViewModel cleanly without code behind in the View and 2) a cache-able state machine to roll back changes. For example with #1 the best so far has three parts, but I think there must be a better way of doing it. XAML
This comment was posted by on 2/21/2013
A lot of programmers and demo makers seem to forget that the keyboard is still an efficient form of data entry and UI control. A sample to something a little more complex like pressing the escape key to handle multiple states in a WPF application would be desirable. The states on each key press would be undo the current field, undo the current record, close the view without code behind.
Migrated CodePlex Work Item Details
CodePlex Work Item ID: '7527' Vote count: '1'