Jan 16, 2014 at 4:34 PM
Edited Jan 16, 2014 at 4:38 PM
In a Ribbon control, I have the following Tabs:
For Home when you click Recent, Home, New Student or New Course, I am using regionmanger to navigate to the form.
When I am in Students tab of the ribbon, Search can do the same to navigate using region manager to take me to a Search Form. Easy work :)
When I am in a New Student Form, the Save, and Delete button must use the commands of the New student form viewmodel.
For print, I will have to use the regioncontext information from New Form to pass to print preview based on what they wanted to print from the student form.
My question is how do I bind the delegate command of the NewStudentViewModel that has SaveCommand, DeleteCommand to the Save and Delete Buttons in the RibbonControl?
The same requirement is there for the Courses Tab
My Shell is
LeftRegion (Some search capability)
MainRegion (Main Content where New Student Form will be displayed)
With the above structure, My TopRegion (Call it AppMenu) does not have access to the NewStudentViewModel or NewCourseViewModel.
I am kinda stuck here on the approach. If this approach not correct, please advise any better ideas