Silverlight 3.0 滑块以 N 为增量移动

发布于 2024-09-15 03:43:07 字数 329 浏览 2 评论 0原文

我想知道是否有人知道如何以 50 或更多的增量移动滑块。

0 - 50 - 100 - 150 - 200 ETC ....

我正在实现一个滑块来过滤一些网格结果。

<Slider x:Name="PointsSlider" Width="350" Height="Auto" ValueChanged="PointsSlider_ValueChanged"
                                Minimum="25" Maximum="3000" LargeChange="50"></Slider> 

I was wondering if anybody knows how to move the slider in increments of 50 or more.

0 - 50 - 100 - 150 - 200 ETC....

I'm implementing a slider to filter some grid results.

<Slider x:Name="PointsSlider" Width="350" Height="Auto" ValueChanged="PointsSlider_ValueChanged"
                                Minimum="25" Maximum="3000" LargeChange="50"></Slider> 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浮云落日 2024-09-22 03:43:07

您的意思是以编程方式执行相当于单击滑块“拇指”任一侧的操作,还是其他操作?

如果是这样:要模拟点击,只需将滑块的 Value 成员设置为当前值 +/- 所需的增量。

Do you mean programmatically do the equivalent of clicking either side of the slider's "thumb", or something else?

If so: To emulate the click just set the slider's Value member to the current value +/- the desired increment.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文