<ListBox.ItemsPanel> <ItemsPanelTemplate> <WrapPanel Orientation="Vertical /> </ItemsPanelTemplate> </ListBox.ItemsPanel>
[quote=引用 2 楼 kenei 的回复:] [quote=引用 1 楼 u011785544 的回复:] [quote=引用 楼主 kenei 的回复:] <ListBox.ItemsPanel> <ItemsPanelTemplate> <WrapPanel Orientation="Vertical /> </ItemsPanelTemplate> </ListBox.ItemsPanel> 如上这种xaml代码如何在cs代码中编写? 因为要根据代码动态设置itemsPanel,而看到的资料都是在xaml中设置,不知道怎么在cs代码中设置. 请教各位达人,谢谢.
[quote=引用 1 楼 u011785544 的回复:] [quote=引用 楼主 kenei 的回复:] <ListBox.ItemsPanel> <ItemsPanelTemplate> <WrapPanel Orientation="Vertical /> </ItemsPanelTemplate> </ListBox.ItemsPanel> 如上这种xaml代码如何在cs代码中编写? 因为要根据代码动态设置itemsPanel,而看到的资料都是在xaml中设置,不知道怎么在cs代码中设置. 请教各位达人,谢谢.
[quote=引用 楼主 kenei 的回复:] <ListBox.ItemsPanel> <ItemsPanelTemplate> <WrapPanel Orientation="Vertical /> </ItemsPanelTemplate> </ListBox.ItemsPanel> 如上这种xaml代码如何在cs代码中编写? 因为要根据代码动态设置itemsPanel,而看到的资料都是在xaml中设置,不知道怎么在cs代码中设置. 请教各位达人,谢谢.
<ListBox.ItemsPanel> <ItemsPanelTemplate> <WrapPanel Orientation="Vertical /> </ItemsPanelTemplate> </ListBox.ItemsPanel> 如上这种xaml代码如何在cs代码中编写? 因为要根据代码动态设置itemsPanel,而看到的资料都是在xaml中设置,不知道怎么在cs代码中设置. 请教各位达人,谢谢.
8,735
社区成员
12,029
社区内容
加载中
试试用AI创作助手写篇文章吧