滑块中的磁效应
看看我在 Silverlight 中的滑块的最大值为 1,从最小值 0 开始,
我希望滑块具有一些磁效应,就像如果我将滑块拇指放在 0 附近,它必须返回到 0。
例如,如果我放下拇指在 (0 - 0.50) 之间,比如说 0.40,拇指必须移动到 0,如果拇指下降的值超过 0.50,它必须移动到 1。
<Slider Height="50" x:Name="slider" Width="160" Maximum="1" SmallChange="1" LargeChange="1" Minimum="0" />
look i have Slider in Silverlight having maximum value of 1 starting from minimum value of 0,
i want the slider to have some magnetic effect, like if i drop slider thumb near 0 it must return to 0.
for example , if i drop the thumb between (0 - 0.50) say 0.40 the very thumb must move to 0, and if thumb drop at value more than 0.50 it must move to 1.
<Slider Height="50" x:Name="slider" Width="160" Maximum="1" SmallChange="1" LargeChange="1" Minimum="0" />
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
ValueChanged
事件怎么样?建立这样的东西:
What about the
ValueChanged
-Event?Build in something like this: