silverlight 4.0 - How to navigate from one ViewModel to another in Caliburn.Micro? -
i want navigate login screen dashboard in silverlight oob app.
i started using caliburn.micro i'm having doubts seeing can use conductor
. or missing something?
note: changed constructor conductor
intended. not proofreading questions.
there several ways display login screen, nicest initiate shellviewmodel
. so, shellviewmodel
have dependency on loginviewmodel
, inject abstraction (iloginviewmodel
), or better still use abstract factory instead, , inject shellviewmodel
constructor.
either way, once have instance of loginviewmodel
in shellviewmodel
, can display either modal dialog box (in case use caliburn.micro windowmanager.showdialog
method - inject dependency iwindowmanager
abstraction), or display login view part of shell views main content area, in case shellviewmodel
conductor, , activate instance of loginviewmodel
activateitem
method.
once have received input loginviewmodel
, either modal dialog or conducted view, can display dashboardviewmodel
appropriate using shellviewmodel
conductor.
Comments
Post a Comment