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
1915
XamRibbon ButtonTool wire up to UserControl ViewModel defined RelayCommand
posted

I have a XamRibbon acting as a main application toolbar with button 'Save'. I am loading various UserControls into the main viewing area, each has a ViewModel behind it - acting as views.

1.How do you wire up XamRibbon ButtonTool to a ViewModel command in general?

2. Each of my user controls/views would like to wireup its SaveCommand RelayCommand to the main toolbar 'Save' button when is loaded. How would I accomplish something like that?

 I am using NA 2010.2 at the moment and MVVM Light. Sample is appreciated. Thanks.