NoReloadTabControl
NeverMorewd opened this issue · 2 comments
Is your feature request related to a problem? Please describe.
NoReloadTabControl:
https://stackoverflow.com/questions/3601125/wpf-tabcontrol-preventing-unload-on-tab-change
Describe the solution you'd like
Add a new StyledProperty NeedReload
,default value is true.
or
Add a new control NoReloadTabControl
inherited from TabControl.
Describe alternatives you've considered
No response
Additional context
No response
Such API design would need much more work.
The current practice is to use TabStrip
instead as the navigation menu portion and then manage the view creation, caching, and showing yourself.
DevExpress have TabContentCacheMode property for that: https://docs.devexpress.com/WPF/DevExpress.Xpf.Core.DXTabControl.TabContentCacheMode
Interestingly, it's not only keeping controls alive, but also keeps them in the visual tree. In case of Avalonia, I suppose, it still should be removed from the logical tree...or would it be a bad idea?