11 Mar 2010 5:27 PM #1
How to set the width of a TabItem's tab?
I want to have nested TabPanels. In the sub TabPanel there will only ever be two TabItems. How can I set the width of these two TabItems to be 50%? E.g. I don't want the tab header's width to be based on the width of the text content, I want it to be about half the parent panel's width. How can I do this?
12 Mar 2010 1:03 AM #2
12 Mar 2010 5:16 AM #3
This is weird. If I just call...
about 50% of the time the tabs are just a bit wider than the text requires...the other 50% there is no difference (normal size).
If I set the min tab width first...
Then about 66% of the time it will be larger as needed. However the other 33% of the time it's back to normal size. What's up with this? How do I make it work 100% of the time?