开发者

What's the best way to create a dense input form in WPF/Silverlight?

Given that you're creating a User Control in WPF that will be displayed on different screen resolutions, what's the best way to layout a dense collection of "input form" elements?

For example, labels, textboxes for text, dropdowns, group boxes, etc.

Do you create a master "grid" and use StackPanels and WrapPanels like cra开发者_如何学编程zy? What's the cleanest way to do this?


My way of doing it is like you described - master Grid with tons of StackPanels and Grid.Row="" statements. However you might try looking at this question and the top answer. The DockPanel looks promising, and I think next time I make a dense input form, I'll try using it.

A really concise tutorial can be found here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜