public ArtistSinglesViewModel(Artist artist) { PlayAudioTrack = delegate(Track track) { var l = MediaPropertiesLibrary.Audio.Library.Library.Songs.Where(t => t.Artists.Contains(artist)) .ToList(); DispatcherLibrary.Dispatcher.Dispatch("Multiple Track Selected For Play", l, l.FindIndex(t => t == track)); }; _singles.Source = new ObservableCollection<Track>(artist.Singles); Singles.Refresh(); OnPropertyChanged(nameof(Singles)); }
public ArtistSinglesViewModel(Artist artist) { PlayAudioTrack = delegate(Track track) { var l = MediaPropertiesLibrary.Audio.Library.Library.Songs.Where(t => t.Artists.Contains(artist)) .ToList(); DispatcherLibrary.Dispatcher.Dispatch("Multiple Track Selected For Play", l, l.FindIndex(t => t == track)); }; _singles.Source = new ObservableCollection <Track>(artist.Singles); Singles.Refresh(); OnPropertyChanged(nameof(Singles)); }