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

Fix3628 - Slider ToolTip not showing #3705

Merged

Conversation

corvinsz
Copy link
Member

@corvinsz corvinsz commented Oct 28, 2024

This should fix #3628

This is kinda hacky but I couldn't think of another way of solving this.

Since we don't have a "code file" (Slider.cs) for Sliders, I added an attached property to the SliderAssist called FocusParentSliderOnClick.
This AP hooks the PreviewMouseLeftButtonDownEvent of the RepeatButtons and focuses the parent Slider when the event is fired.
All of this should probably be kept internal.

Additionally I added a helper method TreeHelper.FindParent<T>(DependencyObject child).

MDIXSliderToolTip

@Keboo Keboo added this to the 5.2.0 milestone Nov 7, 2024
@Keboo Keboo added the release notes Items are likely to be highlighted in the release notes. label Nov 7, 2024
@Keboo Keboo enabled auto-merge (squash) November 7, 2024 07:08
@Keboo Keboo merged commit 1a83380 into MaterialDesignInXAML:master Nov 14, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes Items are likely to be highlighted in the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show slider value tooltip without having to click first
2 participants