开发者

In WPf grid panel if items exceeds one column it should add at next column

开发者 https://www.devze.com 2023-02-07 09:21 出处:网络
In Custom control i need to create a grid开发者_开发知识库 panel, in that i splitted 3 columns and 2 rows. if the items exceeds one column the next items should be added at next columnLooks like you n

In Custom control i need to create a grid开发者_开发知识库 panel, in that i splitted 3 columns and 2 rows. if the items exceeds one column the next items should be added at next column


Looks like you need something specialized that Grid. Try out different panels. I would suggest WrapPanel or UniformGrid. You could also put a Horizontal StackPanel inside each row.

If nothing works out for you, you can always create a custom panel.

It would be better if you posted you scenario here.

0

精彩评论

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