private void page_Tapped(object sender, TappedRoutedEventArgs e) { if (ChromeFrame.GetIsVisible(this) == ChromeFrame.VisibilityStates.Hided) { ChromeFrame.SetIsVisible(this, ChromeFrame.VisibilityStates.IntermediateFull); CounterPanel.Visibility = Visibility.Visible; //bar.Visibility = Visibility.Visible; } else { ChromeFrame.SetIsVisible(this, ChromeFrame.VisibilityStates.Hided); CounterPanel.Visibility = Visibility.Collapsed; //bar.Visibility = Visibility.Collapsed; } }
private void WallList_Loaded(object sender, RoutedEventArgs e) { var sb = WallList.GetListViewScrollViewer(); sb.ViewChanging += (s, args) => { if (args.FinalView.VerticalOffset > 100) { ChromeFrame.SetIsVisible(this, ChromeFrame.VisibilityStates.IntermediateFull); } else { ChromeFrame.SetIsVisible(this, ChromeFrame.VisibilityStates.Intermediate); } }; WallList.Loaded -= WallList_Loaded; }
private void WallList_Loaded(object sender, RoutedEventArgs e) { wallScrollViewer = WallList.GetListViewScrollViewer(); wallScrollViewer.ViewChanging += (s, args) => { if (args.FinalView.VerticalOffset > 150) { ChromeFrame.SetIsVisible(this, ChromeFrame.VisibilityStates.IntermediateFull); } else { ChromeFrame.SetIsVisible(this, ChromeFrame.VisibilityStates.Intermediate); } }; //wallScrollViewer.ChangeView(null, vm.WallScrollOffset, null, true); WallList.Loaded -= WallList_Loaded; }