Skip to content

TabControl: Update IsItemsHost on changes to Visibility rather than IsVisible#3073

Merged
Keboo merged 1 commit intoMaterialDesignInXAML:masterfrom
nicolaihenriksen:fix3063
Feb 4, 2023
Merged

TabControl: Update IsItemsHost on changes to Visibility rather than IsVisible#3073
Keboo merged 1 commit intoMaterialDesignInXAML:masterfrom
nicolaihenriksen:fix3063

Conversation

@nicolaihenriksen
Copy link
Copy Markdown
Contributor

Fixes #3063

Regression introduced in 6be496b.

The original change updated the Panel.IsItemsHost when the bool value was changed. This was bound to IsVisible. This PR changes that behavior to bind to Visibility instead (which is being set by the triggers).

The DP callback did actually fire correctly, but the UI was not appropriately updated. Moving the mouse around and doing "various stuff" could then suddenly make the content appear again. By changing the binding to use Visibility instead, this problem seems to disappear and the control works as expected.

@Keboo Keboo added this to the 4.8.0 milestone Feb 4, 2023
@Keboo Keboo merged commit c3f9d9f into MaterialDesignInXAML:master Feb 4, 2023
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.

Header of the TabControl disappears after switching of the Visibility property

2 participants