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 5989473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:06:22+00:00 2026-05-22T23:06:22+00:00

I have a tab control and when there are too many itmes, I get

  • 0

I have a tab control and when there are too many itmes, I get tab item headers on multiple lines.
So it will be like

[TabItemAA1] [TabItemAA2]
[        TabItem3       ]
[TabItem4AAAAAAAAAAAAAAA]

I don’t mind them stacking but when this happens, TabItem3’s header stretchs to fit the width of tab control.
How can I prevent this or make the tab item content which is TextBlock to fit the extended width?

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-22T23:06:23+00:00Added an answer on May 22, 2026 at 11:06 pm

    That’s kind of the way people expect to see it, though. The tab labels should be centered so you can easily read them. I assume you want to left or right justify instead. Changing the dominant UI paradigm is only a good idea if you’re going to improve upon it.

    It could get very messy, but you could nest another container inside the header and explicitly specify the size and alignment of the objects it contains.

    For a different UI style where the tabs scroll horizontally instead of splitting into multiple lines, you could also check out this guy’s article, titled “WPF Single Row Tab Control”: http://rickdoes.net/post/2009/11/06/WPF-Single-Row-Tab-Control.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Tab Control with multiple Tab Pages. I want to be able
I have a tab navigator control and I would like to make all of
We have a screen that shows a grid inside a tab control. There's one
I have a page with a tab control and each control has almost 15
I have 2 tab items. In tab No.1 I have a control which corresponds
I have a tabpanel with a calendar control on the 4th tab but when
I have a UserControl with a Tab Control containing three tabs. Within the tabs
I have a tab control (in my case a UltraTabControl from Infragistics) and I
I have to implement a tab control identical in terms of style to what
pretty new to vb and I want to get a tab control working. so

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.