private void OnDataRequested(DataTransferManager sender, DataRequestedEventArgs args) { if (GoProFacebookModel != null) { GoProFacebookModel.GetShareContent(args.Request); } }
protected override async void OnNavigatedTo(NavigationEventArgs e) { _navigationHelper.OnNavigatedTo(e); NavigationServices.CurrentViewModel = null; await GoProFacebookModel.LoadItems(NetworkInterface.GetIsNetworkAvailable()); DataContext = this; }
protected override async void OnNavigatedTo(NavigationEventArgs e) { _dataTransferManager = DataTransferManager.GetForCurrentView(); _dataTransferManager.DataRequested += OnDataRequested; _navigationHelper.OnNavigatedTo(e); NavigationServices.CurrentViewModel = null; await GoProFacebookModel.LoadItems(NetworkInterface.GetIsNetworkAvailable()); DataContext = this; }