Beispiel #1
0
 public AddAccountPage()
 {
     this.InitializeComponent();
     viewModel = new AddAccountViewModel();
     viewModel.AddAccount = true;
     this.DataContext = viewModel;
 }
 private void AccountSettingsUserControl_Loaded(object sender, RoutedEventArgs e)
 {
     viewModel = ((FrameworkElement)Parent).DataContext as AddAccountViewModel;
 }
 public SettingsAccountPage()
 {
     this.InitializeComponent();
     viewmodel = new AddAccountViewModel();
     this.DataContext = viewmodel;
 }