using MediaBrowser.Model.Dto;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Net;
using MediaBrowser.Plugins.DefaultTheme.Resources;
using MediaBrowser.UI;
using MediaBrowser.UI.Controls;
using MediaBrowser.UI.Pages;
using MediaBrowser.UI.ViewModels;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace MediaBrowser.Plugins.DefaultTheme.Pages
{
///
/// Interaction logic for HomePage.xaml
///
public partial class HomePage : BaseHomePage
{
///
/// Initializes a new instance of the class.
///
public HomePage()
{
InitializeComponent();
lstCollectionFolders.ItemInvoked += lstCollectionFolders_ItemInvoked;
}
///
/// The _favorite items
///
private ItemCollectionViewModel _favoriteItems;
///
/// Gets or sets the favorite items.
///
/// The favorite items.
public ItemCollectionViewModel FavoriteItems
{
get { return _favoriteItems; }
set
{
_favoriteItems = value;
OnPropertyChanged("FavoriteItems");
}
}
///
/// The _resumable items
///
private ItemCollectionViewModel _resumableItems;
///
/// Gets or sets the resumable items.
///
/// The resumable items.
public ItemCollectionViewModel ResumableItems
{
get { return _resumableItems; }
set
{
_resumableItems = value;
OnPropertyChanged("ResumableItems");
}
}
///
/// The _recently added items
///
private ItemCollectionViewModel _recentlyAddedItems;
///
/// Gets or sets the recently added items.
///
/// The recently added items.
public ItemCollectionViewModel RecentlyAddedItems
{
get { return _recentlyAddedItems; }
set
{
_recentlyAddedItems = value;
OnPropertyChanged("RecentlyAddedItems");
}
}
///
/// The _recently played items
///
private ItemCollectionViewModel _recentlyPlayedItems;
///
/// Gets or sets the recently played items.
///
/// The recently played items.
public ItemCollectionViewModel RecentlyPlayedItems
{
get { return _recentlyPlayedItems; }
set
{
_recentlyPlayedItems = value;
OnPropertyChanged("RecentlyPlayedItems");
}
}
///
/// The _spotlight items
///
private ItemCollectionViewModel _spotlightItems;
///
/// Gets or sets the spotlight items.
///
/// The spotlight items.
public ItemCollectionViewModel SpotlightItems
{
get { return _spotlightItems; }
set
{
_spotlightItems = value;
OnPropertyChanged("SpotlightItems");
}
}
///
/// The _top picks
///
private ItemCollectionViewModel _topPicks;
///
/// Gets or sets the top picks.
///
/// The top picks.
public ItemCollectionViewModel TopPicks
{
get { return _topPicks; }
set
{
_topPicks = value;
OnPropertyChanged("TopPicks");
}
}
///
/// LSTs the collection folders_ item invoked.
///
/// The sender.
/// The e.
void lstCollectionFolders_ItemInvoked(object sender, ItemEventArgs