TabControl

The regular TabControl in WPF only supports lazy-loading of the views inside the tabs. The TabControl provided by this library supports lots of different options.

Inherits from System.Windows.Controls.TabControl.

OptionDescription
LazyLoadingLoad all tabs using lazy loading, but keeps the tabs in memory afterwards.
LazyLoadingUnloadOthersLoad all tabs using lazy loading. As soon as a tab is loaded, all other loaded tabs will be unloaded.
EagerLoadingLoad all tabs as soon as the tab control is loaded.
EagerLoadingOnFirstUseLoad all tabs when any of the tabs is used for the first time.

Properties

Property nameDescription
LoadTabItemsGets or sets load tab items strategy (LazyLoading, LazyLoadingUnloadOthers, EagerLoading or EagerLoadingOnFirstUse);

How to use

<orc:TabControl LoadBehavior="EagerLoading">
  <TabItem ... />
  <TabItem ... />
  <TabItem ... />
</orc:TabControl>

Have a question about Catel or WildGums controls? Use StackOverflow with the Catel tag!


Discussion