我有一个列表框,其中使用了一个ListBox.ItemsPanel - WrapPanel。
<ListBox ItemsSource="{Binding Path=Applets}" Margin="10,92,10,10" ScrollViewer.HorizontalScrollBarVisibility="Disabled" >
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Orientation="Vertical" IsItemsHost="True">
</WrapPanel>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>...
我想让wrappanel这个控件的行为表现为,当宽度增加时,项目向右填充,窗口变窄时则根据需要自动换行。我已经尝试了一些方法,但正确的组合方式仍然困扰着我。请问是否有建议?
我的下一个目标是能够重新排序/排序项目,并更新渲染。
TIA