WPF给容器类控件绑定源,动态生成控件

 1 <ItemsControl x:Name="itemsControl">
 2 <ItemsControl.ItemsPanel>
 3 <ItemsPanelTemplate>
 4 <WrapPanel Orientation="Horizontal"/>
 5 </ItemsPanelTemplate>
 6 </ItemsControl.ItemsPanel>
16 </ItemsControl>

 

posted @ 2020-04-13 10:39  水色天空  阅读(324)  评论(0编辑  收藏  举报