private void OnDataRequested(DataTransferManager sender, DataRequestedEventArgs args) { if (TheOatmealModel != null) { TheOatmealModel.GetShareContent(args.Request); } }
/// <summary> /// Load ViewModel items asynchronous /// </summary> public async Task LoadData(bool isNetworkAvailable) { var loadTasks = new Task[] { TheOatmealModel.LoadItems(isNetworkAvailable), GarfieldGarfieldModel.LoadItems(isNetworkAvailable), XKCDModel.LoadItems(isNetworkAvailable), SatMorningBreakfastCerealModel.LoadItems(isNetworkAvailable), NuklearPowerModel.LoadItems(isNetworkAvailable), }; await Task.WhenAll(loadTasks); }