WPF列表组件中显示列编号方案_alternationindex-CSDN博客

网站介绍:文章浏览阅读1k次。1.在集合组件中显示索引编号方案前台代码:<ItemsControl x:Name="passableTable" ItemsSource="{Bind list}" Grid.Row="1" AlternationCount="{Binding Path=list.Count}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> _alternationindex