private void SetSizesAndSides() { if (!string.IsNullOrEmpty(Sides)) { var sides = Sides.Split(','); LeftWall.IsVisible = sides[0].ToLowerInvariant() == "true"; TopWall.IsVisible = sides[1].ToLowerInvariant() == "true"; RightWall.IsVisible = sides[2].ToLowerInvariant() == "true"; BottomWall.IsVisible = sides[3].ToLowerInvariant() == "true"; } if (!string.IsNullOrEmpty(Sizes)) { var sides = Sizes.Split(','); LeftWall.WidthRequest = int.Parse(sides[0]); ColumnDefinitions[0].Width = int.Parse(sides[0]); TopWall.HeightRequest = int.Parse(sides[1]); RowDefinitions[0].Height = int.Parse(sides[1]); RightWall.WidthRequest = int.Parse(sides[2]); ColumnDefinitions[2].Width = int.Parse(sides[2]); BottomWall.HeightRequest = int.Parse(sides[3]); RowDefinitions[2].Height = int.Parse(sides[3]); } }