コード例 #1
0
 private void OnDataRequested(DataTransferManager sender, DataRequestedEventArgs args)
 {
     if (FarmersMarketModel != null)
     {
         FarmersMarketModel.GetShareContent(args.Request);
     }
 }
コード例 #2
0
        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();
        }
コード例 #4
0
        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;
        }
コード例 #5
0
 protected override async void OnNavigatedTo(NavigationEventArgs e)
 {
     _navigationHelper.OnNavigatedTo(e);
     await FarmersMarketModel.LoadItemsAsync();
 }