当前位置:网站首页>win10 uwp slider 隐藏显示数值
win10 uwp slider 隐藏显示数值
2022-08-04 18:37:00 【林德熙】
本文告诉大家,如何隐藏 slider 拖动出现的数值。 因为这个数值是控件给的,样子不好看,而且在 slider 的上面,不是在他的右边,所以需要隐藏他。
最简单的方法是设置 IsThumbToolTipEnabled ,请看下面
<Slider IsThumbToolTipEnabled="False"/>如果这时需要显示拖动的值,可以使用 ValueChanged 事件,我下面使用一个 TextBlock 来显示拖动的值
<Slider Margin="10,10,10,10" IsThumbToolTipEnabled="False" ValueChanged="Slider_OnValueChanged"></Slider>
<TextBlock x:Name="CumjvpxVufe" Margin="10,100,10,10"></TextBlock>如果需要绑定,那么就可以不需要后台写代码
<Slider x:Name="CumjvpxVufe" Margin="10,10,10,10" IsThumbToolTipEnabled="False" ></Slider>
<TextBlock Margin="10,100,10,10" Text="{x:Bind CumjvpxVufe.Value,Mode=OneWay}"></TextBlock>边栏推荐
猜你喜欢

【RTOS训练营】关于上课和答疑

用Excel绘制统计图

机器学习——线性回归

After EasyCVR is locally connected to the national standard device to map the public network, the local device cannot play and cascade the solution

自己经常使用的三种调试:Pycharm、Vscode、pdb调试

EuROC dataset format and related codes

企业即时通讯软件有哪些功能?对企业有什么帮助?

Flask框架实现注册加密功能详解【Flask企业课学习】

浅谈web网站架构演变过程

”元宇宙“必须具备这些特点
随机推荐
Day018 Inheritance
Google AppSheet: 无需编程构建零代码应用
How does EasyCVR call the double-speed playback of device recording through the interface?
阿里云技术专家秦隆:云上如何进行混沌工程?
袋鼠云思枢:数驹DTengine,助力企业构建高效的流批一体数据湖计算平台
After EasyCVR is locally connected to the national standard device to map the public network, the local device cannot play and cascade the solution
关于使用腾讯云HiFlow场景连接器每天提醒签到打卡
ros2订阅esp32发布的电池电压数据
力扣学习---0804
离线同步odps到mysql 中文乱码是因为?mysql已是utf8mb4
Babbitt | Metaverse daily must-read: Weibo animation will recruit all kinds of virtual idols around the world and provide support for them...
Flink / Scala - 使用 RedisSink 存储数据
July 31, 2022 Summary of the third week of summer vacation
unity中实现ue眼球的渲染
Enterprise survey correlation analysis case
A group of friends asked for help, but the needs that were not solved in a week were solved in 3 minutes?
【填空题】130道面试填空题
如何进行自动化测试?
巴比特 | 元宇宙每日必读:微博动漫将招募全球各类虚拟偶像并为其提供扶持...
在线生成接口文档