Body of original question from browser cache:
How do I set the TabItem.Header to bindings taken from few fields, each binding shown in a different size, all in the place of the original header text; without overriding the default style and behavior of the header - I only need the text.
I tried to set its template but then it creates a rectangle that contains the inner controls, and this rectengle is not responsive for user clicks, and also have the control-style, i want this controls to be unvisible, only its text should be visible.
I've tried the following:
But it doesn't show anything.
I've also tried to set the HeaderTemplate to a DataTemplate but what happens is, the DataTemplate overrides the TabItem style and when I click the text it doesn't go to the clicked tab, besides, the unselected tabs look very funny, I see the rectengle of the text floating, while I want it to be transparent.
So, to summarize up my question, I want to set TabItem.Header.Text to a MultiBinding with StringFormat.
Any idea would be really appreciated. Thanks.
Agreed the question has been changed, but why not just change the question if he asked it wrong/badly?
It was very dajavu to find the question again but without my answer present.