[英]DevExpress-Wpf LayoutItems with different sizes
In my project I have LayoutControls inside these Controls are LayoutGroups and these Groups have LayoutItems in them, my problem is I dont want to set the width of the LayoutItems I want that they get there width automatically. 在我的项目中,我内部有LayoutControls,这些控件是LayoutGroups,而这些Groups中都有LayoutItems,我的问题是我不想设置LayoutItems的宽度,我希望它们自动到达那里。 So at the moment all my Layoutitems have the same size inside the Group but I want that Layoutitems with more Content grow and the others should shrink is this possible?
因此,目前我所有的Layoutitems在组中的大小都相同,但我希望具有更多内容的Layoutitems增长,而其他的Layoutitems应该缩小吗?
enter image description here In the picture you can see that inside the Group there is a Label with a lot of Content but it doesnt get more space than the others 在此输入图像描述在图片中,您可以看到在Group内有一个内容很多的Label,但没有比其他标签更多的空间
Thanks in advance NG 预先感谢NG
For this you can use flexi model. 为此,您可以使用flexi模型。 Add display: flex to Groups and flex: 1 to the Layoutitems.
将display:flex添加到Groups并将flex:1添加到Layoutitems。 also give flex direction to the group.
也给小组灵活的方向。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.