Posted 15 years ago
by Ralph

I'm trying to display a fractional value in a circular gauge label. I can set TextFormat on the CircularTextLabelMajor and it seems to display the value, but unfortunately it always seems to have the fractional part truncated.
My gauge has: gauge:CircularTickSet Minimum="-1" Maximum="1" MajorInterval=".5" MinorInterval=".1" IntervalOrigin="Zero"
This is the only style applied to it:
<Style TargetType="{x:Type gauge:CircularTickLabelMajor}">
<Setter Property="FontSize" Value="15%" />
<Setter Property="ScalePlacement" Value="Inside" />
<Setter Property="ScaleOffset" Value="8" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="Foreground" Value="Black" />
</Style>
Any suggestions? Is this possible?
[Modified at 07/26/2010 01:21 PM]
My gauge has: gauge:CircularTickSet Minimum="-1" Maximum="1" MajorInterval=".5" MinorInterval=".1" IntervalOrigin="Zero"
This is the only style applied to it:
<Style TargetType="{x:Type gauge:CircularTickLabelMajor}">
<Setter Property="FontSize" Value="15%" />
<Setter Property="ScalePlacement" Value="Inside" />
<Setter Property="ScaleOffset" Value="8" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="Foreground" Value="Black" />
</Style>
Any suggestions? Is this possible?
[Modified at 07/26/2010 01:21 PM]