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(); } }
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(); } }
private void listViewSessions_Scrolling(object sender, ScrollingEventArgs e) { m_AllowUpdate = !e.Scrolling; if (!e.Scrolling) { listViewSessions.TopItem.Focused = true; } }