Say I have a tab control, and I have over 50 tabs, where there is no enough space to hold so many tabs, how make these tabs scrollable?
Recently I've implemented such control. It contains two buttons (to scroll left and right) which switch their IsEnabled
and Visibility
states when it is necessary. Also it works perfectly with item selection: if you select a half-visible item, it will scroll to display it fully.
It looks so:
It isn't so much different from the default control, the scrolling is appeared automatically:
I've written the article about this ScrollableTabControl
class in my blog here.
Source code you can find here: WpfScrollableTabControl.zip