Inheritance: ViewModelBase
コード例 #1
0
 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();
 }
コード例 #2
0
 public MainViewModel()
 {
     LoginViewModel = new LoginViewModel();
     viewToWidgetMap = new Dictionary<PivotItem, IWpWidget>();
 }