Disables the Unload of TabItemExt Content in WPF TabControl (TabControlExt)
While switching the TabItems in TabControl the content of previously selected items will be unloaded. To enable or disable unload of TabItemExt content the IsDisableUnloadTabItemExtContent property can be used.
<syncfusion:TabControlExt Name="tabcontrol" IsDisableUnloadTabItemExtContent="True">
<syncfusion:TabItemExt Header="tab1">
<TextBlock Text="content1" Unloaded="TextBlock_Unloaded"/>
</syncfusion:TabItemExt>
<syncfusion:TabItemExt Header="tab2">
<TextBlock Text="content2" Unloaded="TextBlock_Unloaded_1"/>
</syncfusion:TabItemExt>
</syncfusion:TabControlExt>
tabcontrol.IsDisableUnloadTabItemExtContent = true;
When the value is set to true the TabItem content will not get unloaded during tab switching.
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page