Hi,
My application is constructed much like visual studio. You can have multiple documents which can be edited. I'd like to put a Save button in a XamRibbon at the top of the window containing the dock manager, which will enable or disable based on whether or not the ApplicationCommands.Save is enabled. The button should enable / disable based on the currently active document.
How can I do this?
I'm not sure I follow. What I meant by window is the root element that contains the xamRibbon and xamDockManager. Maybe you should submit the project to the support group so they can look into what problem you are having.
That's what I have, but it doesn't seem to work. What window would I be setting the command binding on though? There's no other windows.. just user controls contained in ContentPanes. The user control currently has a toolbar with a button also set to ApplicationCommands.Save, and it properly enables / disables... but the one in the ribbon doesn't.
What part of implementing this are you having a problem with? The setup should be relatively easy - adding a ButtonTool to the Ribbon whose command is the ApplicationCommands.Save and then having a command binding on the window for that command (so you can handle the canexecute/execute).