wpf grid syntax is badly designed

Joined
Jan 10, 2007
Messages
43,898
Location
In The Machine
The wpf grid layout is a great control. It allows for flexible resizeable UIs
and lets the framework take care of the sizing issues.

for example, let's assume you want a gird like this



this gives us a (not uncommon) layout like this (apologies for poor ascii art)

+-----------------------------------------------------------------------------------+
|Some Label* ||Another Label***** ||+----------------------------+|
|Line 2 Label||Another line2 Label|||*** ***** ||*
|**************************************************** +----------------------------+|
+-----------------------------------------------------------------------------------+

where the textboxes resize horizontally with window size and list box resizes in both directions. This is great.

However it's not so great when you want to change something. For instance I show this GUI to my boss and he says " great, but can you put a title on the first line and a graphic to the left of the rest". Fine, I say, I'll just add another line and another column. but here's the problem. I now have to go through my entire grid and increment every row and column number.

There must be a better way than this??


More...

View All Our Microsoft Related Feeds
 
Back
Top