My WPF application has a TabControl with 4 TabItem’s.
Each TabItem has a different ListView with GridView as View.
The ItemContainerStyle of the TabControl define a custom Header with the ‘normal’ ContentPresenter and a TextBox.
How can I update the TextBox of each TabItem header to show the number of items of each LisView when ListView.ItemSource changes? The ItemSource is periodically set asynchronously from a thread in code behind.
RunOnUI(() =>
{
firstTabList.ItemsSource = itemsFirstList;
});
Thanks
If you’re using code behind then you can name your TabItem
and then set the header when you update the ItemsSource