protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            _navigationHelper.OnNavigatedTo(e);
            await RssModel.LoadItemsAsync();

            DataContext = this;
        }
 /// <summary>
 /// Load ViewModel items asynchronous
 /// </summary>
 public async Task LoadDataAsync(bool forceRefresh = false)
 {
     var loadTasks = new Task[]
     {
         RssModel.LoadItemsAsync(forceRefresh),
     };
     await Task.WhenAll(loadTasks);
 }
Esempio n. 3
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            _dataTransferManager = DataTransferManager.GetForCurrentView();
            _dataTransferManager.DataRequested += OnDataRequested;

            _navigationHelper.OnNavigatedTo(e);

            await RssModel.LoadItemsAsync();

            RssModel.SelectItem(e.Parameter);

            if (RssModel != null)
            {
                RssModel.ViewType = ViewTypes.Detail;
            }
            DataContext = this;
        }