LinearGauge sizing issue.

Posted 1 year ago by Avatar ‪ron cohen‬‏

I have LinearGauge with this code :

<gauge:LinearTickSet MajorInterval="0.1" MinorInterval="0.1" Minimum="{Binding ThresholdValueMax}" Maximum="{Binding ThresholdValueMax}">
                                        <gauge:LinearTickMarkMajor Background="Red" TickMarkExtent="1" ScalePlacement="Inside"
													ScaleOffset="4" />
                                        <gauge:LinearTickLabelMajor Foreground="Red" FontSize="9" FontWeight="Bold"
													ScalePlacement="Inside" ScaleOffset="15" />

 but for some reason when ThresholdValueMax = 97.5 the label will show 98.

Any suggestions ?

[Modified 1 year ago]

Comments (1)

Posted 1 year ago by Actipro Software Support - Cleveland, OH, USA

Hi Ron,

Please check out the "Gauge / LinearGauge / Tick Marks and Labels" topic in the documentation that comes with the product.  That has a section named "Rounding and TextFormat" that describes how it's rounding by default, but you can change that and can alter the display string format.

Actipro Software Support
Information The latest build of this product (2018.1 build 0674) was released 1 month ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.