Skip to content

Forward ScrollViewerAssist.BubbleVerticalScroll to nested ScrollViewers#4057

Merged
Keboo merged 4 commits into
MaterialDesignInXAML:masterfrom
corvinsz:fix4055
May 29, 2026
Merged

Forward ScrollViewerAssist.BubbleVerticalScroll to nested ScrollViewers#4057
Keboo merged 4 commits into
MaterialDesignInXAML:masterfrom
corvinsz:fix4055

Conversation

@corvinsz
Copy link
Copy Markdown
Member

fixes #4055
This forwards the attached property materialDesign:ScrollViewerAssist.BubbleVerticalScroll to nested ScrollViewers in all of the controls mentioned in the issue.

I added reproduction examples to the demo app homepage.

Warning

Please revert the following commit before merging:
docs: add reproduction to demo app

One additional issue I noticed: if the checkbox is enabled and then disabled again, scrolling still appears to be forwarded even though it should no longer be.
I suspect there may be an issue with unregistering in OnBubbleVerticalScrollChanged.
This only affects consumers that change the property at runtime, which is likely uncommon. I do not consider it a blocker for this PR, but it may be worth addressing in a follow-up PR.

In the examples below I am scrolling with my mouse wheel:

Before

ScrollViewerBubbleBefore.mp4

After

ScrollViewerBubbleAfter.mp4

@Keboo Keboo added this to the 5.3.3 milestone May 29, 2026
corvinsz and others added 4 commits May 28, 2026 21:42
Ensure `MouseWheel` and `Unloaded` event handlers are detached when `ScrollViewerAssist` functionality is removed from a `ScrollViewer`. This prevents potential memory leaks or incorrect behavior.

Resolves MaterialDesignInXAML#4055
@Keboo Keboo enabled auto-merge (squash) May 29, 2026 04:42
@Keboo Keboo merged commit 5ee1c9d into MaterialDesignInXAML:master May 29, 2026
2 checks passed
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.

Support for materialDesign:ScrollViewerAssist.BubbleVerticalScroll in various controls

2 participants