public KaraokePage() { megaStarzViewModels = ((App)Application.Current).MegaStarzViewModelInstance; DataContext = megaStarzViewModels; InitializeComponent(); startRecored = false; Loaded += KaraokePage_Loaded; }
// Code to execute when the application is launching (eg, from Start) // This code will not execute when the application is reactivated private void Application_Launching(object sender, LaunchingEventArgs e) { MegaStarzViewModelInstance = new MegaStarzViewModels(); //Init isolated store with songs in XAP SongManager.InitIsolatedStore(); //TODO: Uncomment this when solution for playback //Get songs from AZURE MegaStarzViewModelInstance.LoadSongs(); }