May 4, 2011 at 4:18 AM


I'm using RibbonControlLibrary for my application, that mean I have to inherit my Window from RibbonWindow, no more DataWindow, so what is the best way to let my view know where is it viewmodel ?


May 4, 2011 at 9:25 AM

You have 2 options:

1) create custom mvvm impl. of the RibbonWindow, but I only recommend this if you have multiple windows deriving from RibbonWindow.

2) if you only have only one window, you can create and initialize the view model manually. since you probably have no state (ok or cancel button), you should also call SaveAndCloseViewModel in the Closed event of the ribbon window.

I hope you understand the options. If not, just let me know.