protected async override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); if (string.IsNullOrWhiteSpace(ConfigurationService.UserName) || string.IsNullOrWhiteSpace(ConfigurationService.DeviceId) || string.IsNullOrWhiteSpace(ConfigurationService.DeviceKey)) { var dialog = new UserNameDialog(); ContentDialogResult result; do { result = await dialog.ShowAsync(); } while (result != ContentDialogResult.Primary); } MotionConfig.Text = ConfigurationService.Motion; ConfigurationService.Playlist = await YoutubeService.GetYoutubeURI(); NavigateToList(0); UserName.Text = ConfigurationService.UserName; DeviceId.Text = ConfigurationService.DeviceId; await Init(); GetEmotions(null, null); dispatcherTimer.Tick += GetEmotions; dispatcherTimer.Start(); }