none
To change RootVisual

    General discussion

  • Hello.

    I am beginning in Silverlight.

    In the Startup I call the Page.

    this.RootVisual = New page();

    When I execute the comand, this work.

    var page = App.Current.RootVisual as Test.Page;

     But, I need to call Login page before Page. To change in the startup:

    this.RootVisual = New login();

    This below line, don't work, because rootvisual is refering the login. How to modify rootvisual for Page after login?

    var page = App.Current.RootVisual as Test.Page; 

    Is Correct the form as is making? Any ideia?

    Thankyou

    Teles

    Thursday, March 22, 2012 8:37 AM

All replies

  • I wouln't recommend this.

    I think is better to create a Shell Page, and change your user controls there. This way you have better control and even implement some transitions and animations.

    Thursday, March 22, 2012 1:49 PM