From 9354c0b27baed58fc41e6fb1c5022ace66adbc1a Mon Sep 17 00:00:00 2001 From: watsonb8 Date: Sun, 26 May 2019 11:33:07 -0500 Subject: [PATCH] Double click to play a song in the library --- .../Frontend/Views/MainView/MainViewModel.cs | 9 +++++---- Aurora/Frontend/Views/Songs/SongsView.xaml | 19 ++++++------------- 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/Aurora/Frontend/Views/MainView/MainViewModel.cs b/Aurora/Frontend/Views/MainView/MainViewModel.cs index ff0e0a1..4009ae1 100644 --- a/Aurora/Frontend/Views/MainView/MainViewModel.cs +++ b/Aurora/Frontend/Views/MainView/MainViewModel.cs @@ -13,15 +13,15 @@ namespace Aurora.Frontend.Views.MainView public class MainViewModel : BaseViewModel { private ObservableCollection _pages; - public ObservableCollection Pages + public ObservableCollection Pages { get { return _pages; } set { - if(value != _pages) + if (value != _pages) { _pages = value; - OnPropertyChanged("Pages"); + OnPropertyChanged("Pages"); } } @@ -30,11 +30,12 @@ namespace Aurora.Frontend.Views.MainView { _pages = new ObservableCollection(new[] { + new NavigationItem { Id = 4, Title = "Party", Group="Social", TargetType = typeof(ArtistsView)}, + new NavigationItem { Id = 5, Title = "Profile", Group="Social", TargetType = typeof(ArtistsView)}, new NavigationItem { Id = 0, Title = "Songs", Group="Library", TargetType = typeof(SongsView) }, new NavigationItem { Id = 1, Title = "Artists", Group="Library", TargetType = typeof(ArtistsView)}, new NavigationItem { Id = 2, Title = "Albums", Group="Library", TargetType = typeof(AlbumsView)}, new NavigationItem { Id = 3, Title = "Stations", Group="Library", TargetType = typeof(StationsView)}, - }); } diff --git a/Aurora/Frontend/Views/Songs/SongsView.xaml b/Aurora/Frontend/Views/Songs/SongsView.xaml index e29e18d..8b827a5 100644 --- a/Aurora/Frontend/Views/Songs/SongsView.xaml +++ b/Aurora/Frontend/Views/Songs/SongsView.xaml @@ -17,7 +17,12 @@ RowHeight="30" HeaderHeight="50" BorderColor="#CCCCCC" - HeaderBackground="#E0E6F8"> + HeaderBackground="#E0E6F8"> + + + @@ -27,18 +32,6 @@ - - - -