private void OnDataRequested(DataTransferManager sender, DataRequestedEventArgs args) { if (FarmersMarketModel != null) { FarmersMarketModel.GetShareContent(args.Request); } }
protected async override void OnNavigatedTo(NavigationEventArgs e) { _navigationHelper.OnNavigatedTo(e); await FarmersMarketModel.LoadItemsAsync(); DataContext = this; }
protected override async void OnNavigatedTo(NavigationEventArgs e) { _dataTransferManager = DataTransferManager.GetForCurrentView(); _dataTransferManager.DataRequested += OnDataRequested; _navigationHelper.OnNavigatedTo(e); await FarmersMarketModel.LoadItemsAsync(); }
protected async override void OnNavigatedTo(NavigationEventArgs e) { _dataTransferManager = DataTransferManager.GetForCurrentView(); _dataTransferManager.DataRequested += OnDataRequested; _navigationHelper.OnNavigatedTo(e); if (FarmersMarketModel != null) { await FarmersMarketModel.LoadItemsAsync(); if (e.NavigationMode != NavigationMode.Back) { FarmersMarketModel.SelectItem(e.Parameter); } FarmersMarketModel.ViewType = ViewTypes.Detail; } DataContext = this; }
protected override async void OnNavigatedTo(NavigationEventArgs e) { _navigationHelper.OnNavigatedTo(e); await FarmersMarketModel.LoadItemsAsync(); }