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?
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).
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.