Skip to content

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

Open
nicolaihenriksen wants to merge 1 commit into
masterfrom
issue4063
Open

Fix TabControl issue where tabs (in a dialog) stopped working#4065
nicolaihenriksen wants to merge 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.

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

1 participant