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

Wpf: Clear owner before setting Visible to false #2690

Conversation

cwensley
Copy link
Member

@cwensley cwensley commented Oct 2, 2024

This fixes issues when you try to hide a child form by setting Visible = false. If it has an owner, it will hide the entire parent chain behind other open windows. To fix that, we set (internally) the owner to null, and ensure we also handle the case when the parent is a HwndWindowHandler for interop with win32/winforms windows.

@cwensley cwensley added this to the 2.8.4 milestone Oct 2, 2024
@cwensley cwensley force-pushed the curtis/wpf-hide-child-windows-without-hiding-parents branch from 203852e to bb08532 Compare October 2, 2024 17:09
@cwensley cwensley force-pushed the curtis/wpf-hide-child-windows-without-hiding-parents branch from bb08532 to 8b02221 Compare October 2, 2024 17:17
@cwensley cwensley merged commit fa2ca49 into picoe:develop Oct 2, 2024
3 checks passed
@cwensley cwensley deleted the curtis/wpf-hide-child-windows-without-hiding-parents branch October 2, 2024 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant