C# windows 8 block style layout autosize
I want all the panels to auto size depending of FormWindowState, if is Maximized to adapt the height and width to screen size and look all good and without empty spaces if I will fill all the form with panels.
you can achieve it by dividing the actual width to a specific percentage of height.
lets say you want your division to be 10/15/45/30
so in code:
double actualItemHeight = this.Height/ 0.10; double actualItemWidth = this.Width/ 0.10;
i hope you get my point, you can create a method so you can reuse the code.