private async void LoadLanguages() { string lang = Windows.Globalization.Language.CurrentInputMethodLanguageTag; lang = lang.Substring(0, 2); List <AvailableLanguage> availableLanguages = await AvailableLanguages.getList(); txtLanguage.ItemsSource = availableLanguages; txtLanguage.DisplayMemberPath = "Name"; txtLanguage.SelectedValuePath = "Id"; txtLanguage.SelectedValue = lang; Windows.Storage.ApplicationDataCompositeValue composite = (Windows.Storage.ApplicationDataCompositeValue)localSettings.Values["user_data"]; if (composite != null) { //CloureManager.ShowDialog("Hay valor!"); txtUser.Text = (string)composite["user"]; txtPass.Password = (string)composite["pass"]; chKeepConnected.IsChecked = true; CloureManager.account_data_saved = true; //attemptLoginV2(); attemptLogin(); } }