Best method to build data entry forms in WPF? -


when building wpf forms used data entry (e.g. bunch of labels next bunch of textboxes , comboboxes) i've seen 2 methods:

  • create master grid, divide 2 columns, , add rows height="auto" each field , 2 rows header , footer (and submit button), , each label , text box has own row.
  • the other method create master stackpanel , inside horizontal stackpanel each pair of label-textbox.

how design data entry forms? i'm torn between 2 methods, maybe there's alternative i'm unaware of?

edit: henk said should define best , think agree, best mean easiest maintain, create, align , add or remove fields demands change.

so far criteria grid better ease of alignment.

definately first method!

it's aligned, use of sharedsizegroup can have same alignment eg in different groupboxes.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -