public SettingsPage()
        {
            this.InitializeComponent();

            this._navigationHelper = new NavigationHelper(this);
            this._navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this._navigationHelper.SaveState += this.NavigationHelper_SaveState;

            HardwareButtons.BackPressed += HardwareButtons_BackPressed;
        }
        public AboutPage()
        {
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;

            Loaded += AboutPage_Loaded;
        }
        public MusicLibraryPage()
        {
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;

            _vm = new LibraryPageVm();

            DataContext = _vm;

            Loaded += MusicLibraryPage_Loaded;

            _themeBrush = (SolidColorBrush) App.Current.Resources["ThemeBrush"];
            _themeBackground = (SolidColorBrush) App.Current.Resources["ThemeBackground"];

            SongsView.NewSongSelected += SongsView_NewSongSelected;
        }
        public RescanLibraryPage()
        {
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;

            _libraryManager = new MusicLibraryManager();

            _libraryManager.NewAlbumsAdded += _libraryManager_NewAlbumsAdded;

            _libraryManager.NewSongsScanned += _libraryManager_NewSongsScanned;

            Loaded += async delegate
            {
                await _libraryManager.RescanMusicAlbums();

                Frame.Navigate(typeof (SettingsPage));
            };
        }
        public MusicScanPage()
        {
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;

            StatusBar.GetForCurrentView().HideAsync();

            displayRequest = new DisplayRequest();
            displayRequest.RequestActive(); 

            _musicGetter = new MusicDataGetter();

            _musicGetter.NewSongsDiscovered += MusicGetterNewSongsDiscovered;

            Loaded += delegate { ScanAndImportMusic(); };

            
        }
        public PivotPage()
        {
            this.InitializeComponent();

            this.NavigationCacheMode = NavigationCacheMode.Required;

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;

            //Loaded += async delegate
            //{
            //    await _vm.LoadSongs();
            //    //SongsView.ItemsSource = _vm.Songs;
            //    MusicPlayerWrapper.Instance.SaveActiveState();
            //    MusicPlayerWrapper.Instance.Dispatcher = this.Dispatcher;
            //};

            _vm = new TempVm();

            DataContext = _vm;
        }