Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7618371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:23:13+00:00 2026-05-31T03:23:13+00:00

My WPF application has a TabControl with 4 TabItem’s. Each TabItem has a different

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T03:23:15+00:00Added an answer on May 31, 2026 at 3:23 am

    If you’re using code behind then you can name your TabItem

    <TabItem x:Name="tabItem1" ...>
    

    and then set the header when you update the ItemsSource

    RunOnUI(()=>{
        firstTabList.ItemsSource = itemsFirstList;
        tabItem1.Header = string.Format("Header: {0}", itemsFirstList.Count);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF application which has a main window composed from several custom
I have a WPF TabControl with two TabItems. Each TabItem contains a ListBox with
I have a wpf application that has a button for for each folder under
I have a Custom TabControl in a WPF application (attention: the technology is not
I have a View Model class in a WPF application that has some very
We have a WPF Application that has a two flavors with a consistent UI
Im writing a WPF application that has a zoom and pan ability, but what
I am working on a WPF application which has a treeview that represents an
I am struggling with the best way to handle a WPF application that has
When using FxCop 1.36 for a WPF application with a single window that has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.