コード例 #1
0
ファイル: ImageView.xaml.cs プロジェクト: RomanGL/OneVK-WP8.1
 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;
     }
 }
コード例 #2
0
        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;
        }
コード例 #3
0
        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;
        }