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

[Bug] Unhandled Exception with SukiUI Dock Control: "AttachedToLogicalTreeCore called for 'Document' but control has no logical parent" #368

Open
1 task done
envy666 opened this issue Dec 20, 2024 · 2 comments
Labels
Area:Theming Issues related to theme bug Something isn't working question Further information is requested

Comments

@envy666
Copy link

envy666 commented Dec 20, 2024

Check the following items

  • I have looked up relevant Issue

Description of the issue

Dear SUKIUI Team,

I am writing to report an issue encountered while using the SukiUI Dock control in my project. The problem I faced is an unhandled exception which causes the application to crash. The error message reads:

"AttachedToLogicalTreeCore called for 'Document' but control has no logical parent"

Initially, I suspected that the issue might be due to a mistake in my implementation, so I carefully compared my usage with the official DEMO provided by SukiUI. However, during this verification process, I managed to reproduce the same issue within the official DEMO itself.

Steps to Reproduce:
Drag the Program.cs form to float it outside of its original docked position.
Drop the form back into the Document area.
Switch the side menu to any other menu item.
Switch back to the dock menu containing the previously floated and re-docked document.
Upon performing these steps, the application crashes at SukiTransitioningContentControl.SecondBuffer.SetValue.

Package Version

6.0.0-beta8

Environment

win10

Expected Behavior

fixed bug

Reproduction

Steps to Reproduce:
Drag the Program.cs form to float it outside of its original docked position.
Drop the form back into the Document area.
Switch the side menu to any other menu item.
Switch back to the dock menu containing the previously floated and re-docked document.
Upon performing these steps, the application crashes at SukiTransitioningContentControl.SecondBuffer.SetValue.

Additional Information

No response

@AuroraZiling
Copy link
Collaborator

I can't reproduce this issue in 6.0.0-beta8 and latest dev in demo app (win11 24h2)

@AuroraZiling AuroraZiling added bug Something isn't working question Further information is requested Area:Theming Issues related to theme labels Dec 20, 2024
@envy666
Copy link
Author

envy666 commented Dec 23, 2024

1.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:Theming Issues related to theme bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants