prism + login page prior shell load or bootstaper run

Topics: Prism v2 - Silverlight 3
Feb 11, 2010 at 6:18 AM

Hello guys

I am working application using prism with silverlight,i am unable to show the login page before Shell (or) BootStrapper,

my Requirement is before Shell load or BootStrapper run  to show login page ,i am checking credential in login page onecs credential is valid then shell should be load

this the code i writen in App.xmal page

this is for App.xmal
private void Application_Startup(object sender, StartupEventArgs e)


this.RootVisual = new Login();


this for login page

 private void btnLogin_Click(object sender, RoutedEventArgs e)


            Csla.DataPortal.ProxyTypeName = typeof(Csla.DataPortalClient.SynchronizedWcfProxy<>).AssemblyQualifiedName;
            Bootstrapper bootstrapper = new Bootstrapper();

Feb 11, 2010 at 7:05 PM


As this article from the MSDN documentation explains, “You can set the value of the RootVisual property only one time from code, although you get its value any number of times.” Therefore, if you set the RootVisual to be an instance of Login, the Bootstrapper’s functionality can never set the Shell to be the RootVisual, thus the Shell won’t be displayed.

You can read about a possible workaround for this situation in this thread.

Please let me know if this helps.

Damian Schenkelman