private async void MasterListView_ItemClick(object sender, ItemClickEventArgs e) { var clickedItem = (all)e.ClickedItem; if (clickedItem.type == nameof(福利)) { FuliImage.Source = clickedItem.url; FuliGrid.Visibility = Visibility.Visible; await FuliGrid.Fade(1).StartAsync(); _lastSelectedItem = null; return; } _lastSelectedItem = clickedItem; if (AdaptiveVisualStateGroup.CurrentState == VisualStateNarrow) { ViewModel.NavigationService.Navigate(typeof(WebViewPage), _lastSelectedItem.url, new DrillInNavigationTransitionInfo()); } else { MainWebView.WebViewUri = new Uri(_lastSelectedItem.url); } }
private async void FuliGrid_Tapped(object sender, Windows.UI.Xaml.Input.TappedRoutedEventArgs e) { await FuliGrid.Fade(0).StartAsync(); FuliGrid.Visibility = Visibility.Collapsed; }