【发布时间】:2021-07-08 10:01:53
【问题描述】:
是否可以在 .NET Winforms 中创建由 Windows 窗体上的各种 Combobox 和 Checkbox 控件驱动的 Inline-flexbox 等效项? 我不需要太复杂的东西,可能最多有 6 个带有弯曲边缘的按钮,当它们被添加到按钮内的文本并调整其大小时,它们只是内联堆叠。
this is an example you can add many of these filters and remove them by clicking the X
【问题讨论】:
-
你看
FlowLayoutPanel了吗?FlowLayoutPanel可以用来堆叠控件一个接一个,对齐由控件自己完成。 -
Thanx 现在来看看。需要能够在没有固定顺序的情况下添加或删除控件。我刚刚在堆栈溢出“在 flowlayoutpanel 中动态添加控件”上找到了这篇文章 ...stackoverflow.com/questions/16900522/…
标签: c# .net winforms button inline