编程语言
首页 > 编程语言> > c# – WPF中的浮动项目

c# – WPF中的浮动项目

作者:互联网

如何创建一个控件容器,其中每个项目(控件)的行为类似于浮动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,wpf-controls,floating
来源: https://codeday.me/bug/20190620/1247320.html