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

Don't BringIntoViewOnFocusChange in Carousel. #16339

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

grokys
Copy link
Member

@grokys grokys commented Jul 16, 2024

What does the pull request do?

Carousel can't actually scroll controls into view because it's a paging control so this property doesn't make much sense.

But what it does affect is other scroll viewers that are contained in it. If a control is focused within a scroll viewer within a carousel, then BringIntoView will be invoked by the carousel scroll viewer, even though the inner scroll viewer has BringIntoViewOnFocusChange = false.

Carousel can't actually scroll controls into view because it's a paging control so this property doesn't make much sense. But what it does affect is other scroll viewers that are contained in it. If a control is focused within a scroll viewer within a carousel, then `BringIntoView` will be invoked by the carousel scroll viewer, even though the inner scroll viewer has `BringIntoViewOnFocusChange  = false`.
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0050166-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
@maxkatz6 maxkatz6 merged commit dc884cf into master Jul 17, 2024
10 of 12 checks passed
@maxkatz6 maxkatz6 deleted the fixes/carousel-bring-into-view branch July 17, 2024 02:50
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.

3 participants