Click here to Skip to main content
15,911,139 members

Comments by Christy_Piffat (Top 1 by date)

Christy_Piffat 18-Jul-11 10:53am View    
Thanks for responding so quickly. I was debating between these options and had chosen passing an instance of the detail object because I will need to use that for printing all selected documents in the future. However, I am having a lot of problems actually opening the selected (single) document. I have the following in my EmployeeModule:
_container.RegisterType<Object, Views.SelectedDocument>("SelectedDocument");
In my SelectedProjectViewModel, I call a method called OpenDocument whenever a new Project is selected. This method is supposed to open the selected project view in the MainRegion, but it is only giving me the text "System.Object" in the window.
public void OpenProject(SelectedProjectViewModel selectedProjVM, EmployeeProject proj, IRegionManager regionManager)
{
selectedProjVM.CurrentProject = proj;
SelectedProject selectedView = new SelectedProject(selectedProjVM);
Uri path = new Uri("SelectedView", UriKind.Relative);
regionManager.RequestNavigate("MainRegion", path);
}
When I add a NavigationResult to the RequestNavigate, it gives no errors and resturns a result of true. The regionmanager, viewmodel and project class are correct. Any ideas whether this is an error in processing my view, my URI, or just an error with the architecture? Thanks!