
Hi, I have a CircularGauge with a ticketset contained on it from - to + (Minimum to Maximum). I would like that all the labels from this ticketset were displyed positive as values . I tried to get this changing the TextFormat for the CircularTickLabelMajor , and also using other approaches in the code behind like
- CircularTickLabelMajor.TextFormat.Replace ("-" , string.Empty);
- CircularTickLabelMajor.toString().Replace ("-" , string.Empty);
Also I tried to trigger the TextInput and PreviewInput event in order to change the values but its never executed.
<gauge:CircularTickSet x:Name="MainRPMScale" MajorInterval="5" MinorInterval="0.5" Minimum="-30" Maximum="30" IntervalOrigin="Minimum" >
<gauge:CircularTickSet.Ticks>
<gauge:CircularTickMarkMajor TickMarkExtent="16" TickMarkAscent="1.5" Background="White"
ScalePlacement="Inside" ScaleOffset="4" />
<gauge:CircularTickMarkMinor TickMarkExtent="8" TickMarkAscent="1" Background="White"
ScalePlacement="Inside" ScaleOffset="4" />
<gauge:CircularTickLabelMajor Foreground="White" FontSize="18" FontFamily="Consolas" x:Name="MainRPMLabelMajor"
ScalePlacement="Inside" ScaleOffset="16" TextFormat="{(0:#;#.00)}"/>
</gauge:CircularTickSet.Ticks>
<gauge:CircularTickSet.Pointers>
</gauge:CircularTickSet>
I think i am close but not sure what I am doing wrong.