/// <summary> /// Populates our page from settings /// </summary> protected void PopulateSettings () { //---- can access through typed calls: this.txtUsername.Text = NSUserDefaults.StandardUserDefaults.StringForKey ("username"); //---- can access the dictionary, but must check for null: if (NSUserDefaults.StandardUserDefaults["password"] != null) { this.txtPassword.Text = NSUserDefaults.StandardUserDefaults["password"].ToString (); } this.swtchStaySignedin.On = NSUserDefaults.StandardUserDefaults.BoolForKey ("staySignedin"); this.lblFavoriteColor.Text = NSUserDefaults.StandardUserDefaults.StringForKey ("favoriteColor"); this.lblFavoriteFood.Text = NSUserDefaults.StandardUserDefaults.StringForKey ("favoriteFood"); this.txtFavoriteBand.Text = NSUserDefaults.StandardUserDefaults.StringForKey ("favoriteBand"); }