Example #1
0
        protected override Task OnInitializeAsync(IActivatedEventArgs args)
        {
            var rootModel = new RootModel();

            ViewModelLocationProvider.Register(
                typeof(MainPage).FullName, () => new MainPageViewModel(this.NavigationService));
            ViewModelLocationProvider.Register(
                typeof(TweetPage).FullName, () => new TweetPageViewModel());
            ViewModelLocationProvider.Register(
                typeof(DraftListPage).FullName, () => new DraftListPageViewModel(rootModel));
            return base.OnInitializeAsync(args);
        }
 public DraftListPageViewModel(RootModel rootModel)
 {
     this.RootModel = rootModel;
 }