Hide ticks at Min and Max in WPF Slider
Posted
by gehho
on Stack Overflow
See other posts from Stack Overflow
or by gehho
Published on 2010-03-12T12:55:21Z
Indexed on
2010/03/12
12:57 UTC
Read the original article
Hit count: 710
Hi,
I want to display a Slider ranging from 0.5 to 1.5 with only one tick mark at 1.0 to mark the center and default value. I have defined a Slider as follows:
<Slider Minimum="0.5" Maximum="1.5"
IsMoveToPointEnabled="True" IsSnapToTickEnabled="False"
Orientation="Horizontal"
Ticks="1.0"
TickPlacement="BottomRight"
Value="{Binding SomeProperty, Mode=TwoWay}"/>
However, besides a tick mark at 0.0 this Slider also shows tick marks at 0.5 and 1.5, i.e. the Minimum and Maximum values.
Is there a way to hide these min/max tick marks?! I checked all properties and tried changing some of them, but did not have success so far.
Thanks,
gehho.
© Stack Overflow or respective owner