private void OnCurrentAudioChanged(CurrentAudioChangedMessage message) { RaisePropertyChanged("CurrentAudio"); RaisePropertyChanged("CurrentRadio"); RaisePropertyChanged("IsPlaying"); RaisePropertyChanged("CurrentPlaylist"); RaisePropertyChanged("WindowTitle"); RaisePropertyChanged("CanBroadcast"); _artRequested = false; _statusUpdated = false; _nowPlayingUpdated = false; _scrobbled = false; CancelCover(); GetTrackImage(_coverCancellationToken.Token); if (Settings.Instance.ShowTrackNotifications && message.OldAudio != null) //disable show on first start by checking for null { Application.Current.Dispatcher.BeginInvoke(new Action(() => { ShowTrackNotification(message.NewAudio); })); } }
private void OnCurrentAudioChanged(CurrentAudioChangedMessage message) { Dispatcher.BeginInvoke(new Action(() => { if (AssociatedObject != null && message.NewAudio != null) { AssociatedObject.ScrollIntoView(message.NewAudio); } })); }
private void OnCurrentAudioChanged(CurrentAudioChangedMessage message) { _artRequested = false; }