Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

In AvalonDock, visual tree is destroyed when another tab is selected #1069

Open
xceedsoftware opened this issue Jul 13, 2017 · 4 comments
Open
Labels

Comments

@xceedsoftware
Copy link
Owner

junrau[CodePlex]
In AvalonDock, visual tree of a tab is destroyed when another tab is selected. You can see this by using the Loaded/Unloaded events of UserControls that are the tabs' content.

This causes issues with some views reproducing logic, when the logic has already been performed.

Is there a way to preserve the visual tree inside a tab when it is not selected?

@programatix
Copy link

Any fix on this issue?

@XceedBoucherS
Copy link
Collaborator

Hi,
This is the normal behavior for the standard TabControl. A TabControl is used inside AvalonDock.
But, starting at v3.7, a new property can be set to true to prevent reloading of the TabContent in AvalonDock.

You can see it in the what's new release notes : https://xceed.com/release-notes/#toolkit-wpf-3.7.18312.21450
This is a feature of the Commercial version of the Toolkit.
You can try it here for free for 45 days : https://xceed.com/xceed-toolkit-plus-for-wpf/
Thank you.

@vbaros
Copy link

vbaros commented Nov 21, 2019

Is there a plan to add the property to the free version?

@XceedBoucherS
Copy link
Collaborator

Hi,
Not at the moment. But things can always change :-)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants