开发者

Silverlight: usercontrol-collection

Hey I want to have a usercontrol that开发者_Python百科 exist out of a collection of other usercontrol

something like this:

<my:foocol>
<my:foo />
<my:foo />
<my:foo />
</my:foocol>


In Silverlight you have several controls that can contain a collection of child user controls.

One option is the StackPanel and another is the various List boxes derived from the ItemsControl class.

The StackPanel will either fill itself with the child controls horizontally or vertically, while the list boxes will normally display a vertical list of items that can be selected (but this can be overriden).

You also have the WrapPanel that behaves like a horizontal StackPanel that starts on a new line when overflowing. The WrapPanel is available in the Silverlight Toolkit.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜