private void MainPage_Loaded(object sender, RoutedEventArgs e) { _loginViewModel = App.ViewModel.LoginViewModel; _loginViewModel.OnSuccessfulValidation += (o, ev) => { App.ViewModel.LoginIsVisible = false; App.ViewModel.MainPage = this; App.ViewModel.RecreatePivotControlIfChanged(); }; _loginViewModel.Validate(); }
public MainViewModel() { LoginViewModel = new LoginViewModel(); viewToWidgetMap = new Dictionary<PivotItem, IWpWidget>(); }