LinearGauge sizing issue.

Gauge for WPF Forum

Posted 7 years ago by ‪ron cohen‬‏
Version: 17.2.0661
Platform: .NET 4.5
Environment: Windows 7 (64-bit)

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 7 years ago]

Comments (1)

Posted 7 years 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

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.