2019-05-18 21:25:36 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Runtime.CompilerServices;
|
2019-07-05 18:17:09 +00:00
|
|
|
|
using Aurora.Design.Components.NavigationMenu;
|
|
|
|
|
using Aurora.Design.Views.Albums;
|
|
|
|
|
using Aurora.Design.Views.Artists;
|
|
|
|
|
using Aurora.Design.Views.Songs;
|
|
|
|
|
using Aurora.Design.Views.Stations;
|
|
|
|
|
using Aurora.Design.Views.Party;
|
|
|
|
|
using Aurora.Design.Views.Profile;
|
2019-05-18 21:25:36 +00:00
|
|
|
|
|
2019-07-05 18:17:09 +00:00
|
|
|
|
namespace Aurora.Design.Views.MainView
|
2019-05-18 21:25:36 +00:00
|
|
|
|
{
|
|
|
|
|
public class MainViewModel : BaseViewModel
|
|
|
|
|
{
|
|
|
|
|
private ObservableCollection<NavigationItem> _pages;
|
2019-05-26 16:33:07 +00:00
|
|
|
|
public ObservableCollection<NavigationItem> Pages
|
2019-05-18 21:25:36 +00:00
|
|
|
|
{
|
|
|
|
|
get { return _pages; }
|
|
|
|
|
set
|
|
|
|
|
{
|
2019-05-26 16:33:07 +00:00
|
|
|
|
if (value != _pages)
|
2019-05-18 21:25:36 +00:00
|
|
|
|
{
|
|
|
|
|
_pages = value;
|
2019-05-26 16:33:07 +00:00
|
|
|
|
OnPropertyChanged("Pages");
|
2019-05-18 21:25:36 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public MainViewModel()
|
|
|
|
|
{
|
|
|
|
|
_pages = new ObservableCollection<NavigationItem>(new[]
|
|
|
|
|
{
|
2019-05-27 16:23:14 +00:00
|
|
|
|
new NavigationItem { Id = 4, Title = "Party", Group="Social", TargetType = typeof(PartyView)},
|
2019-07-05 15:37:44 +00:00
|
|
|
|
new NavigationItem { Id = 5, Title = "Profile", Group="Social", TargetType = typeof(ProfileView)},
|
2019-05-18 21:25:36 +00:00
|
|
|
|
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)},
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|