public TextInputLayoutGettingStartedViewModel() { canValidateForErrors = false; SubmitCommand = new SubmitResetCommand(new Action(OnSubmitButtonClicked)); ResetCommand = new SubmitResetCommand(new Action(OnResetButtonClicked)); Genders = new string[] { "Male", "Female" }; Countries = new ObservableCollection <string>(); RegionInfo country = new RegionInfo(new CultureInfo("en-US", false).LCID); //To get the Country Names from the CultureInfo installed in windows foreach (CultureInfo cul in CultureInfo.GetCultures(CultureTypes.SpecificCultures)) { country = new RegionInfo(new CultureInfo(cul.Name, false).LCID); if (!Countries.Contains(country.DisplayName.ToString())) { Countries.Add(country.DisplayName.ToString()); } } }
public TextInputLayoutGettingStartedViewModel() { canValidateForErrors = false; SubmitCommand = new SubmitResetCommand(new Action(OnSubmitButtonClicked)); ResetCommand = new SubmitResetCommand(new Action(OnResetButtonClicked)); }