Rama Krishna

Rama Krishna

  • NA
  • 363
  • 35.9k

Dynamic layout creation

Aug 28 2018 6:31 AM
Hi all,
 
like below I'm trying to create the layout using UWP with c#
 
1. If we have two buttons 1st row should split equally and display 2 buttons
2. If we have 4 buttons then we need to show like above
3. If we have 5 buttons then in 1st row need to display 4 buttons & 5th button need to show in 2nd row with full width
 
Note: all should be create dynamically. 1. columns 2. rows 3. buttons using c#
 
can anyone help me.
 
Thanks in advance