Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Dock content gets re-created on every tab selection when using templates #19

Open
adam-adorjan opened this issue Feb 26, 2024 · 2 comments

Comments

@adam-adorjan
Copy link

Looks like issue #5 from the Avalonia 10 version is back. We have tested the Avalonia 11 version of the framework pretty thoroughly and this is the only issue we have right now. The ReloadingProblemSample you have demonstrates this really well. Weirdly it seems like the OldChild of the DockContentPresenter is a TextBlock both in our app and in your sample, regardless of what it's supposed to be. I think the interaction between your PropertyChanged handler and Avalonia's might be messing each other up, possibly some of the default Avalonia code is running that should be overridden. I see both your CreateChild and Avalonia's running sometimes.

If you could try to look into this sooner rather than later that would be super appreciated, we're really under the gun to deliver automation features.

Thanks for this great framework!!!!!!!

@npolyak
Copy link
Owner

npolyak commented Feb 28, 2024

Adam, I'd appreciate if you can create a runnable project that has demos this issue and share it with me.

@adam-adorjan
Copy link
Author

Hi Nick. You already have one. Check out your ReloadingProblemSample project, it reproduces the issue perfectly.

Thanks!

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

No branches or pull requests

2 participants