コード例 #1
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     var dispatcher = new OptionalDispatcher(Dispatcher);
     var resStreamProvider = new PhoneResourceStreamProvider();
     var comingToAbout = new ComingToAbout(NavigationContext);
     viewModel = new AboutViewModel(dispatcher, resStreamProvider);
     viewModel.ComingToAbout = comingToAbout;
     viewModel.StateProvider = this;
     viewModel.Untombstone();
     Untombstone();
     DataContext = viewModel;
 }
コード例 #2
0
 internal AboutViewModel(OptionalDispatcher dispatcher, ResourceStreamProvider resStreamProvider)
 {
     this.dispatcher = dispatcher;
     this.resStreamProvider = resStreamProvider;
 }