Keep TabItems in a TabControl from repositioning?

Posted by Kirn on Stack Overflow See other posts from Stack Overflow or by Kirn
Published on 2010-05-11T12:14:04Z Indexed on 2010/05/11 16:24 UTC
Read the original article Hit count: 221

Filed under:
|
|
|

Hi everyone,

In WPF, Is there a simple way to stop TabItems in a TabControl from being repositioned when the selected TabItem changes? 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.

Thanks!

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf