Saturday 15 August 2015

c# - How do you layout buttons in a table format? -


How do you approach creating a "table" full of buttons?

  Pre (B = Button Control) BBBBBBBBBBBBBBBBBBBBBBB   

How do I usually use dock and stack panels? Will I have to create a nested group of stack panels, where I make 5 vertical stack panels and then put them in the horizontal stack panel? Or is there an easy way?

  & lt; Uniform Grid Rows = "5" column = "5" & gt; & Lt ;! - Your button - & gt; & Lt; / UniformGrid & gt;   

You can learn about the Uniform Grid .

If you have it, it is optional to stop the rows is more than 25 buttons.

If you do not want all the grid cells to be of the same size, then you can exclude a standard grid . The fault is that columnfunction and rowfinition properties are verbose declares.

No comments:

Post a Comment