public async Task PlayPrevious() { if (TrackCollection.CanGoPrevious) { await DispatchHelper.InvokeAsync(() => TrackCollection.CurrentTrack--); await Locator.MediaPlaybackViewModel.SetMedia(CurrentMedia, false); } else { UpdateTileHelper.ClearTile(); } }
public async Task PlayNext() { if (TrackCollection.CanGoNext) { await App.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, async() => { TrackCollection.CurrentTrack++; await Locator.MediaPlaybackViewModel.SetMedia(CurrentMedia, false); }); } else { UpdateTileHelper.ClearTile(); } }