Keep TabItems in a TabControl from repositioning?

I know its late but I had to figure this out today so here goes Basically you need to create your own control template for the tab control and use a different panel to contain your tab items Here is a simplified example using a WrapPanel Style TargetType="TabControl" x:Key="MyTabControl.

I know its late but I had to figure this out today so here goes. Basically you need to create your own control template for the tab control and use a different panel to contain your tab items. Here is a simplified example using a WrapPanel.

You then use this as follows.

If you have Blend you can Edit a copy of the template for your tab control to remove this behavior I believe.

I really appreciate the negative without so much as a comment. I just spent a day pair programming with Microsoft team members, including a member of the blend team, in which we discussed the lookless nature of WPF controls. We also overrode the behavior of an expander control by editing a copy of the control template in blend and then setting the edited template as the default template for that control.

If this behavior of the tab control is hard coded then it is contrary to the guidelines published by Microsoft. – Mike B May 12 '10 at 1:54.

So that clicking on a TabItem would simply display its contents, but not reposition the TabItems as it usually does (by moving the selected TabItem to the bottom row of tabs if it wasn't there already). Edit: To clarify, I do want the tabs to be displayed in multiple rows, I just don't want the tab headers to be repositioned when a TabItem from a row other than the bottom row is selected. I'd like the collection of headers to remain completely static, but for the contents of that TabItem to still be displayed when its header is clicked.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions