public SearchMoviesPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += navigationHelper_LoadState; this.navigationHelper.SaveState += navigationHelper_SaveState; }
public AllTVShowsPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += navigationHelper_LoadState; this.navigationHelper.SaveState += navigationHelper_SaveState; }
public EditConnectionPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += navigationHelper_LoadState; this.navigationHelper.SaveState += navigationHelper_SaveState; }
public SupportPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; this.navigationHelper.SaveState += this.NavigationHelper_SaveState; }
public AlbumPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += navigationHelper_LoadState; this.Loaded += AlbumPage_Loaded; }
public AboutPivot() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; this.navigationHelper.SaveState += this.NavigationHelper_SaveState; }
public InputPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += navigationHelper_LoadState; this.navigationHelper.SaveState += navigationHelper_SaveState; DataContext = GlobalVariables.CurrentPlayerState; }
public AllMusicPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += navigationHelper_LoadState; this.navigationHelper.SaveState += navigationHelper_SaveState; FilterComboBox.SelectedIndex = 0; }
public ArtistDetailsPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += navigationHelper_LoadState; DataContext = GlobalVariables.CurrentArtist; ReloadAll(); }
public MovieDetailsHub() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += navigationHelper_LoadState; this.navigationHelper.SaveState += navigationHelper_SaveState; DataContext = GlobalVariables.CurrentMovie; }
public SearchMusicPivot() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; this.navigationHelper.SaveState += this.NavigationHelper_SaveState; NavigationCacheMode = Windows.UI.Xaml.Navigation.NavigationCacheMode.Enabled; }
public AllMoviesPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += navigationHelper_LoadState; this.navigationHelper.SaveState += navigationHelper_SaveState; this.NavigationCacheMode = NavigationCacheMode.Enabled; FilterComboBox.SelectedIndex = 0; }
public InputPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; this.navigationHelper.SaveState += this.NavigationHelper_SaveState; DataContext = GlobalVariables.CurrentPlayerState; PopulateFlyout(); isVibrationOn = (bool)SettingsHelper.GetValue("Vibrate", false); }
public SourceFilesPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; this.navigationHelper.SaveState += this.NavigationHelper_SaveState; HardwareButtons.BackPressed += OnBackPressed; DataContext = GlobalVariables.CurrentSource; previousDirectories = new ObservableCollection<File>(); }
public AllTVShowsPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; this.navigationHelper.SaveState += this.NavigationHelper_SaveState; NavigationCacheMode = Windows.UI.Xaml.Navigation.NavigationCacheMode.Enabled; if (allTVShows == null) LoadTVShows(); }
//private DispatcherTimer timer; public CoverPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; this.navigationHelper.SaveState += this.NavigationHelper_SaveState; NavigationCacheMode = Windows.UI.Xaml.Navigation.NavigationCacheMode.Required; if (GlobalVariables.CurrentPlayerState == null) GlobalVariables.CurrentPlayerState = new PlayerState(); DataContext = GlobalVariables.CurrentPlayerState; PlayerHelper.RefreshPlayerState(); PlayerHelper.StartAutoRefresh(1); }
public CoverPage() { this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += navigationHelper_LoadState; NavigationCacheMode = Windows.UI.Xaml.Navigation.NavigationCacheMode.Required; if (GlobalVariables.CurrentPlayerState == null) GlobalVariables.CurrentPlayerState = new PlayerState(); DataContext = GlobalVariables.CurrentPlayerState; PlayerHelper.RefreshPlayerState(); timer = new DispatcherTimer(); timer.Interval = TimeSpan.FromSeconds(10); timer.Start(); timer.Tick += timer_Tick; }
public NowPlaying() { InitializeComponent(); defaultViewModel["SongsInPlaylist"] = new ObservableCollection<Song>(); defaultViewModel["TotalPlaytimeHours"] = "0"; defaultViewModel["TotalPlaytimeMinutes"] = "0"; defaultViewModel["Tracks"] = "0"; DataContext = defaultViewModel; PlaylistStats.Visibility = Visibility.Collapsed; IdToColourConverter.DataContext = GlobalVariables.CurrentPlayerState; IdToThicknessConverter.DataContext = GlobalVariables.CurrentPlayerState; navigationHelper = new NavigationHelper(this); navigationHelper.LoadState += this.NavigationHelper_LoadState; navigationHelper.SaveState += this.NavigationHelper_SaveState; navigationHelper.GoBackCommand = new RelayCommand(() => { navigationHelper.GoBack(); }); defaultViewModel["NavigationHelper"] = NavigationHelper; Loaded += NowPlaying_OnLoaded; /*************************************************************** * THIS IS AWFULL. THIS IS THE EVIL WITHIN XAML. A needed evil. * ------------------------------------------------------------- * Microsoft won't add multibinding to WinRT, so programmers * get creative an pissed off, doing stuff like this. * * All this little piece of code does is just refreshing the * collection bound to the list of songs. ***************************************************************/ GlobalVariables.CurrentPlayerState.PropertyChanged += async (sender, args) => { if (args.PropertyName.Equals("ItemId")) { await RefreshSongs(); } }; }