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

Only update selection on focus in TabControl if focus comes from TabItem. #16338

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

grokys
Copy link
Member

@grokys grokys commented Jul 16, 2024

What does the pull request do?

This is a temporary workaround to help Actipro's issue #15433: they're embedding other controls in a TabControl-derived control and they don't want these other controls to change the selection when they're focused.

Ideally as that issue says, we'd be moving all interactions out of TabControl and into TabItem but given that this would be a big behavioural breaking change to anyone deriving from TabControl, we need to take smaller steps. This fix, along with them overriding TabControl.OnPointerPressed and TabControl.OnPointerReleased should allow them to work around the issue.

This is a temporary workaround to help Actipro's issues #15433: they're embedding other controls in a `TabControl`-derived control and they don't want these other controls to change the selection when they're focused.
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0050162-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added bug backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels Jul 17, 2024
@billhenn
Copy link
Contributor

Thanks, the update looks good on our end.

@maxkatz6 maxkatz6 merged commit 34558f2 into master Jul 19, 2024
10 of 12 checks passed
@maxkatz6 maxkatz6 deleted the fixes/15433-tabcontrol-focus-selection branch July 19, 2024 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants