Greetings,
We have added a Save button to the Backstage, when there are changes the save button it gets enabled, when you press Save it gets disabled once again.
Once the button is pressed it doesn't get enabled again, although we have debugged and the CanExecute of the RelayCommand is returning true.
Additionally we have this button appearing in the Quick Access Bar, when we use the button of the Quick Access Bar it works fine, we can save many times and it gets enabled and disabled multiple times without problems.
The structure we are following is to create a ApplicationMenu2010Item and to its Header we associate a ButtonTool.
Any insights you could offer will be greatly appreciated.
Thanks!
Hello Dzyann,
Thank you for your feedback. I am glad that you have managed to solve your issue.
Yanko,
We have discovered where the issue is comming from. It is something we were doing internally that broke the enable/disable behavior.
I think it would be for the best if we delete this thread, I just don't see the option for it.
Hi Yanko,
What I was refering to was that if you associate a Relay Command to the Backstage and the "CanExecute" method changes, the Backstage Item gets disabled and enable when the "CanExecute" condition changes, but in one point it stays disabled. And although the CanExecute goes back to True, the Backastage Item doesn't get enabled any more.
Do you know any reasons for this happening?
I have been looking into your scenario and it seems that the buttons in the Application Menu 2010 do not become disabled when press them using commands. I am attaching a sample application(ButtonCommand.zip).
Please let me know, if I am missing something.