当前位置:网站首页>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>边栏推荐
- 网站设计师:Nicepage 4.15 Crack By Xacker
- A group of friends asked for help, but the needs that were not solved in a week were solved in 3 minutes?
- #yyds干货盘点# 面试必刷TOP101:链表相加(二)
- 使用.NET简单实现一个Redis的高性能克隆版(二)
- Thrift installation configuration
- 当前最快的实例分割模型:YOLACT 和 YOLACT++
- 路由技术
- Google Earth Engine APP——一键在线查看全球1984-至今年的影像同时加载一个影像分析
- CIFAR发布《AI伦理的文化:研讨会报告》【附下载】
- ERC721标准与加密猫
猜你喜欢

(ECCV-2022)GaitEdge:超越普通的端到端步态识别,提高实用性

EasyCVR调用云端录像API接口返回错误且无录像文件生成,是什么原因?

The upgrade of capacity helps the flow of computing power, the acceleration moment of China's digital economy

Hezhou Cat1 4G module Air724UG is configured with RNDIS network card or PPP dial-up, and the development board is connected to the Internet through the RNDIS network card (taking the RV1126/1109 devel

ACP-Cloud Computing By Wakin自用笔记(2)CPU和内存虚拟化

在表格数据集上训练变分自编码器 (VAE)示例

How does EasyCVR call the double-speed playback of device recording through the interface?

DHCP&OSPF combined experimental demonstration (Huawei routing and switching equipment configuration)

2022 May 1 Mathematical Modeling Question C Explanation

入选爱分析·银行数字化厂商全景报告,网易数帆助力金融数字化场景落地
随机推荐
gbase8s创建RANGE分片表
margin 塌陷和重合的理解
#yyds干货盘点# 面试必刷TOP101:链表相加(二)
2019年海淀区青少年程序设计挑战活动小学组复赛试题详细答案
LVS+Keepalived群集
路由技术
CAN光纤转换器CAN光端机解决消防火灾报警
VPC2187/8 电流模式 PWM 控制器 4-100VIN 超宽压启动、高度集成电源控制芯片推荐
PHP代码审计9—代码执行漏洞
Matlab drawing 1
Short-term reliability and economic evaluation of resilient microgrids under incentive-based demand response programs (Matlab code implementation)
关于使用腾讯云HiFlow场景连接器每天提醒签到打卡
Google AppSheet: 无需编程构建零代码应用
通配符SSL证书不支持多域名吗?
EasyCVR calls the cloud recording API and returns an error and no recording file is generated. What is the reason?
面试官:MVCC是如何实现的?
EuROC dataset format and related codes
报道称任天堂在2023年3月前不会推出任何新硬件产品
ATF中断处理的设计模型
运力升级助力算力流转,中国数字经济的加速时刻