WPF Ribbon MenuItem to control page
I've got a question about WPF and Ribbon Menu. What I'm trying to do is to create an application with multiple pages, but for those (which will be in frame) I would like to use RibbonMenuItem's menu. When I put a button on page, with the code - for example for saving data from textboxes to sql database , it work great. But when I'm trying to call this code using MenuItem's - nothing. I would like to do that because I will have multiple pages in my application, so I would like to use only one button to save data, not a button on each page.
Thank you in advance.