May 15, 2013 at 11:42 AM
Edited May 28, 2013 at 2:40 PM
I have two ModernWindows with the following Pages implemented inside them with mui:Links in mui:LinkGroups:
When someone enters valid login information in the Login.xaml page
, the event "SuccessfulLogin" is raised in it.
How can I subscribe to that in the Login.xaml window
, so it can open Main.xaml and close itself?
I tried to assign the "Login.xaml" page to the mui:Link-Source in code behind (so I would have a page-object to work with), but I can only assign a URI to a mui:Links source property:
Login login = new Login();
login.SuccessfulLogin += SuccessfulLoginEventHandler;
LLogin.Source = login; // Compiler Error