private StackLayout CreateStatsLayout(Stats stat) { if (_selIndex != -1) { statsTitle.Text = _selChar.CharName + "'s Stats (" + _conn.GetEncountersByCharacter(_selChar.CharacterId).Count + " Encounters)"; } else { statsTitle.Text = "Player Stats (" + _conn.GetEncountersByPlayer(_userId).Count + " Encounters)"; } var sList = GetStatStrings(stat); var title = CreateTitleLabel(stat); var stack = new StackLayout { HorizontalOptions = LayoutOptions.StartAndExpand, Children = { title, new Label { Text = sList[0] }, new Label { Text = sList[1] }, new Label { Text = sList[2] }, new Label { Text = sList[3] } } }; return(stack); }