Slider tooltip format in a code behind #2726
-
Hello!
How can i do this XAML in a code? |
Beta Was this translation helpful? Give feedback.
Answered by
ElieTaillard
Jun 1, 2022
Replies: 1 comment 2 replies
-
You can use the Example: This is the function in the source code: This function was added in this PR: 4c0415c You may not have this feature in the version you are using because it's a recent addition. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ElieTaillard
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the
SetToolTipFormat
function.Example:
MaterialDesignThemes.Wpf.SliderAssist.SetToolTipFormat(yourElement, value)
This is the function in the source code:
https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/blob/master/MaterialDesignThemes.Wpf/SliderAssist.cs#L28
This function was added in this PR: 4c0415c
You may not have this feature in the version you are using because it's a recent addition.