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; }
internal AboutViewModel(OptionalDispatcher dispatcher, ResourceStreamProvider resStreamProvider) { this.dispatcher = dispatcher; this.resStreamProvider = resStreamProvider; }