How to format The display value of certain values in IntegerUpDown control

241 Views Asked by At

I am using WPF extended toolkit to display a simple input box.

xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"

...

<Label Content="TraceTime(ms): " />
<xctk:IntegerUpDown Value="{Binding TraceTime}" Maximum="5000" Minimum="0"/>

The value of the input represents the duration to perform an action. When the value is 0, my business logic will interpret that as an infinite duration. Now I would like to modify the control so that if the user enters the value 0, the text displayed in the input box is replaced with the "∞" symbol. How would I go about doing this, or is it even feasible?

0

There are 0 best solutions below