Is there a way in XAML to cause the tab item headers to stretch across the width of the tab control?
For example, I have three tabs: red, blue and green. If I have a tab control with its width set to auto, the tab headers will only fill up part of the space above the tab content, but I want them to fill up all the space. For my three tab example, red should take up the first third of the control, blue should take up the center third, and green the final third.
I have an idea how to do this in a code behind which I am working on now, but I am interested in doing this the easiest way possible.
Best Solution
I took Jordan's example and made some changes to it. This version should work for any number of tabs:
Same namespace in the xaml:
And this will make all tabs use it: