protected override void OnNavigatedTo(NavigationEventArgs e) { view = e.Parameter as viewModel;//?? new viewModel(); }
public MainWindow() { view = new ViewModel.viewModel(); this.DataContext = view; InitializeComponent(); }
public MainPage() { view = new ViewModel.viewModel(); this.InitializeComponent(); }