[英]UWP: PivotItem Header with count
I have a pivot that creates the items from a list. 我有一个枢纽,可以从清单建立项目。 Now I want to show a count in the Heading-Text For example when I have a list of 5 items, I want in the header following text: Item1, Item2, Item3 ... 现在,我想在标题文本中显示一个计数,例如,当我有5个项目的列表时,我想要在以下文本的标题中:Item1,Item2,Item3 ...
This is the code of my Pivot: 这是我的数据透视图的代码:
<Pivot ItemsSource="{Binding Items}" SelectedItem="{Binding CurrentItem, Mode=TwoWay}" SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}">
<Pivot.ItemTemplate>
<DataTemplate>
<!-- Data-->
</DataTemplate>
</Pivot.ItemTemplate>
</Pivot>
Any ideas?? 有任何想法吗??
也许在<DataTemplate>
里面用创建一个PivotItem
Header="{Binding YOURITEM}">
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.