protected async override void OnNavigatedTo(NavigationEventArgs e) { _navigationHelper.OnNavigatedTo(e); await StatsModel.LoadItemsAsync(); DataContext = this; }
protected override async void OnNavigatedTo(NavigationEventArgs e) { _dataTransferManager = DataTransferManager.GetForCurrentView(); _dataTransferManager.DataRequested += OnDataRequested; _navigationHelper.OnNavigatedTo(e); await StatsModel.LoadItemsAsync(); }
protected async override void OnNavigatedTo(NavigationEventArgs e) { _dataTransferManager = DataTransferManager.GetForCurrentView(); _dataTransferManager.DataRequested += OnDataRequested; _navigationHelper.OnNavigatedTo(e); if (StatsModel != null) { await StatsModel.LoadItemsAsync(); if (e.NavigationMode != NavigationMode.Back) { StatsModel.SelectItem(e.Parameter); } StatsModel.ViewType = ViewTypes.Detail; } DataContext = this; }
protected override async void OnNavigatedTo(NavigationEventArgs e) { _navigationHelper.OnNavigatedTo(e); await StatsModel.LoadItemsAsync(); }