How do I layout a form in WPF using grid or other controls for maintainability
Posted
by Jason Coyne
on Stack Overflow
See other posts from Stack Overflow
or by Jason Coyne
Published on 2010-03-08T04:06:44Z
Indexed on
2010/03/08
6:21 UTC
Read the original article
Hit count: 271
I have a WPF form, I want to lay out a standard form onto it. Each form element will have a label, and then a control. Pretty standard stuff.
If I use a wrap panel, it can cause the label and the control to be separated, but I want them to stay together. is there some WPF equivalent of nobr?
Grid works, and allows for column spanning etc, however I really really hate that you specify the column and row on each control. This makes it extremely inconvenient to reorder or insert things into the list.
Is there a way to get the grid to use more HTML style column/rows where the items are a child of the row they are in, so that I can re-order easily?
Is there some other control that will let me layout a form easily?
© Stack Overflow or respective owner