using MediaBrowser.Model.Dto; using MediaBrowser.Plugins.DefaultTheme.Pages; using MediaBrowser.Plugins.DefaultTheme.Resources; using MediaBrowser.UI; using MediaBrowser.UI.Controller; using System.Collections.Generic; using System.ComponentModel.Composition; using System.Windows; using System.Windows.Controls; namespace MediaBrowser.Plugins.DefaultTheme { /// /// Class Theme /// [Export(typeof(BaseTheme))] class Theme : BaseTheme { /// /// Gets the detail page. /// /// The item. /// Page. public override Page GetDetailPage(BaseItemDto item) { return new DetailPage(item.Id); } /// /// Gets the list page. /// /// The item. /// Page. public override Page GetListPage(BaseItemDto item) { return new ListPage(item.Id); } /// /// Gets the home page. /// /// Page. public override Page GetHomePage() { return new HomePage(); } /// /// Displays the weather. /// public override void DisplayWeather() { App.Instance.Navigate(new WeatherPage()); } /// /// Gets the login page. /// /// Page. public override Page GetLoginPage() { return new LoginPage(); } /// /// Gets the internal player page. /// /// Page. public override Page GetInternalPlayerPage() { return new InternalPlayerPage(); } /// /// Gets the global resources. /// /// IEnumerable{ResourceDictionary}. public override IEnumerable GetGlobalResources() { return new[] { new AppResources() }; } } }