我如何创建一个控件容器,其中每个项目(控件)的行为都像一个 float DIV(在 HTML 中),像这样 video (考虑到每个文件夹都是一个控件)?
最佳答案
看看 WrapPanel 类。 MSDN
它具有您正在寻找的功能。
Positions child elements in sequential position from left to right, breaking content to the next line at the edge of the containing box. Subsequent ordering happens sequentially from top to bottom or from right to left, depending on the value of the Orientation property.
关于c# - WPF 中的 float 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13022728/