Add ThumbToolTip to Slider

与世无争的帅哥 提交于 2019-12-11 01:26:32

问题


How to add a ThumbToolTip to a Slider (currently I'm working with Windows Phone 8.1 RT)?

According to MSDN - there is a property that should enable ThumbTooltip. But as I've looked at default style there is no sign of ToolTip.

I've tried to set the value to true (which is also a default value):

<Slider Maximum="100" Value="10" HorizontalAlignment="Stretch" 
 ThumbToolTipValueConverter="{StaticResource ToolTipConv}" IsThumbToolTipEnabled="True"/>

But no ToolTip was shown. I can think of making a Control and bind it to Slider's value, but can it be done easier way?


回答1:


The default ThumbToolTip is not available for Windows Phone 8.1.

On Windows 10 UWP apps works fine.



来源:https://stackoverflow.com/questions/23264743/add-thumbtooltip-to-slider

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!