LinearGauge sizing issue.

Gauge for WPF Forum

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

I have LinearGauge with this code :

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

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

Any suggestions ?

[Modified 6 years ago]

Comments (1)

Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

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.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.