WPF,我的滑块Max和Min固定不能设置0 [英] WPF , can not set 0 in my slider Max and Min fixed

查看:82
本文介绍了WPF,我的滑块Max和Min固定不能设置0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试修改滑块的频率,但仍然无法在滑块上设置值0,我不明白为什么。在SliderToolTip中出现。

I tried modifing the frecuency of my slider but still I can not set value 0 on my slider and I don't understand why. In the SliderToolTip appears.

<Label TextOptions.TextFormattingMode="Ideal" Width="140" Foreground="#2B3856" FontWeight="Bold" FontSize="16"   Margin="3">Tide Height </Label>
<Slider HorizontalAlignment="Left" x:Name="tideHeight_11"

                     Margin="3"

                     VerticalAlignment="Top"

                     Width="250"

                    Minimum="-12.4" Maximum="12.4"  IsSnapToTickEnabled="True" TickFrequency="1<big></big>" AutoToolTipPlacement="BottomRight" ValueChanged="Slider_ValueChanged"/>
 <TextBlock TextOptions.TextFormattingMode="Ideal" Width="50" Foreground="#2B3856" FontSize="16" x:Name="tideHeightText" Text="{Binding Value, ElementName=tideHeight_11}" >
</TextBlock>



请帮忙吗?


Any help please?

推荐答案

更改TickFrequency:

TickFrequency =0.1
Change TickFrequency:
TickFrequency="0.1"


这篇关于WPF,我的滑块Max和Min固定不能设置0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆