Ritika

Ritika

  • NA
  • 23
  • 1.8k

Adding dynamic tiles and columns in a grid

Nov 23 2016 7:55 AM

I have a grid of 4*4 rows and columns. I need a code for xaml.cs page lets for take example I take a variable where x=2,3,4,5,…. So at runtime when x=2 two tiles will be displayed in the grid, if x=3 three tiles will be displayed in the grid and accordingly if no. of tiles will be greater than 16 then a new column will get added into it.

Can anyone please write a small piece of code for this. Just the logical part!!!


Answers (2)