public MainPage(ISessionStore session) { Session = session; InitializeComponent(); signOut.Clicked += (s, e) => { session.Logout(); (Application.Current as SaltyDog.CognitoForms.App.App).InitializeMainPage(); }; }