private void Render() { Children?.Clear(); if (InternalItems != null && InternalItems.Count() > 0) { GenerateRows(); for (var index = 0; index < InternalItems.Count; index++) { int col = (int)(index % ColumnCount); var row = (int)Math.Floor(index / (float)ColumnCount); var image = CreateImage(InternalItems[index]); Children?.Add(image, col, row); } } }