Skip to content

Fix TabControl issue where tabs (in a dialog) stopped working#4065

Merged
Keboo merged 1 commit into
masterfrom
issue4063
Jun 12, 2026
Merged

Fix TabControl issue where tabs (in a dialog) stopped working#4065
Keboo merged 1 commit into
masterfrom
issue4063

Conversation

@nicolaihenriksen

Copy link
Copy Markdown
Contributor

Fixes #4063

The hack that was added to avoid multi-click/keypress navigation from screwing with the animation, was causing some issues in particular when used inside of a Popup - e.g. DialogHost with the default style. I believe this is because the Popup apparently sets PopupRoot.IsHitTestVisible=False when it closes (See here). So in cases where the dialog reopens with the same content, their initial value for IsHitTestVisible will be false.

To mitigate this issue, the hack (and the animation) is now skipped in case TabControl.IsHitTestVisible == False when the animation is intended to occur. This avoids the issue the OP was experiencing, and still works in the "normal" use cases.

@Keboo Keboo merged commit d44517e into master Jun 12, 2026
2 checks passed
@Keboo Keboo deleted the issue4063 branch June 12, 2026 04:29
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

Successfully merging this pull request may close these issues.

TabControl Tabs Don't Work After First Time Showing In DialogHost

2 participants