Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1130
XamRibbon and XamDockManager
posted

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?

Parents
No Data
Reply
  • 54937
    Offline posted

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

Children