c# - How do I customise the tooltip on the thumbs of the WPF extended-toolkit RangeSlider? -
the rangeslider widget in wpf extended-toolkit rangeslider uses doubles values of each of 2 thumbs on slider.
i using slider specify lower datetime , upper datetime. have bind property represents datetime doubles (essentialy datetime.ticks cast double).
when hovering on thumbs of rangeslider, tooltip shown double value, want instead show human-readable date. can conversion enough, but:
how rangeslider show custom text in thumb tooltips?
a less appealing (but sufficient) alternative disable thumb tooltips entirely. solution alternative proving elusive.
for it's worth, i've tried inspecting code rangeslider.cs using jetbrains decompiler, hasn't yielded promising leads untrained eye.
the tooltip see autotooltip of slider used in rangeslider's template.
slider exposes autotooltipplacement , autotooltipprecision, not expose property change text displayed in tooltip.
however, found article demonstrates workaround allow achieve looking for:
https://joshsmithonwpf.wordpress.com/2007/09/14/modifying-the-auto-tooltip-of-a-slider/
Comments
Post a Comment