MessageCommand & ChangeDataSetCommand question/suggestion
Hi,
I am in the process of learning to work with Noesis Studio and I am starting out with a simple main menu. It is essentially four buttons, "New", "Resume", "Load" and "Quit". I have used the binding mechanism and the design time DataContext support to tie all these to commands in my design time view model. Now, is there a way to test drive how the "CanExecute" property of Commands influences rendering? In a real game the Resume command's CanExecute would return false if there is no save game.
I kind of expected MessageCommand & ChangeDataSetCommand to have a CanExecute property that I could change to test this but it seems missing, is there a reason for this?
I know I can test the rendering by changing the Enabled property directly on the Button, but it would be nice to be able to test the full behavior driven from only the view model.
/Jonas
I am in the process of learning to work with Noesis Studio and I am starting out with a simple main menu. It is essentially four buttons, "New", "Resume", "Load" and "Quit". I have used the binding mechanism and the design time DataContext support to tie all these to commands in my design time view model. Now, is there a way to test drive how the "CanExecute" property of Commands influences rendering? In a real game the Resume command's CanExecute would return false if there is no save game.
I kind of expected MessageCommand & ChangeDataSetCommand to have a CanExecute property that I could change to test this but it seems missing, is there a reason for this?
I know I can test the rendering by changing the Enabled property directly on the Button, but it would be nice to be able to test the full behavior driven from only the view model.
/Jonas
Re: MessageCommand & ChangeDataSetCommand question/suggestion
Hi Jonas!
Please create a task on our issue tracker, and I will implement a CanExecute property for MessageCommand and ChangeDataSetCommand.
Thanks for the suggestion!
Please create a task on our issue tracker, and I will implement a CanExecute property for MessageCommand and ChangeDataSetCommand.
Thanks for the suggestion!
Who is online
Users browsing this forum: No registered users and 1 guest