I have a slider and I want to display his value on the ToolTip.
As slider's Value property is a double, ToolTip display like "12.12548565". I just want to display a rounded value ("12")
I've tried :
<Slider x:Name="sldAnalogSetPoint"
Maximum="100"
ValueChanged="sldAnalogSetPoint_ValueChanged"
Cursor="Arrow"
ToolTip="{Binding Value, ElementName=sldAnalogSetPoint, StringFormat=/{0:D/}}"/>
what's wrong ?