コード例 #1
0
        public override void Execute(object parameter)
        {
            ScrollingEventArgs lv = parameter as ScrollingEventArgs;

            if (lv.ScrollDirection == ScrollDirection.Bottom)
            {
                if (Locator.MediaPlaybackViewModel.PlaybackService.PlayingType == PlayingType.Music)
                {
                    App.SplitShell.HideTopBar();
                }
            }
            else if (lv.ScrollDirection == ScrollDirection.Top)
            {
                App.SplitShell?.ShowTopBar();
            }
        }
コード例 #2
0
        public override void Execute(object parameter)
        {
            ScrollingEventArgs lv = parameter as ScrollingEventArgs;

            if (lv.ScrollDirection == ScrollDirection.Bottom)
            {
                if ((Locator.MediaPlaybackViewModel.PlaybackService.IsRunning &&
                     Locator.MediaPlaybackViewModel.PlaybackService.PlayingType == PlayingType.Music) ||
                    Locator.NavigationService.CurrentPage == VLCPage.ArtistPage ||
                    Locator.NavigationService.CurrentPage == VLCPage.ArtistInfoView)
                {
                    App.SplitShell.HideTopBar();
                }
            }
            else if (lv.ScrollDirection == ScrollDirection.Top)
            {
                App.SplitShell?.ShowTopBar();
            }
        }
コード例 #3
0
ファイル: FormWinGridProxy.cs プロジェクト: RavenB/gridsearch
 private void listViewSessions_Scrolling(object sender, ScrollingEventArgs e)
 {
     m_AllowUpdate = !e.Scrolling;
     if (!e.Scrolling)
     {
         listViewSessions.TopItem.Focused = true;
     }
 }