How CircularGauge handle Nan value for pointer?

Gauge for WPF Forum

Posted 4 years ago by Jehiel
Version: 15.1.0620
Avatar

I have a CircularGauge where its pointer value was binded to a dynamic parameter that could possibly contain NAN value. Currently whenever this scenario happens my application crashes. I need to cater this scenario for I can't change this parameter value to 0 instead of Nan. 0 is different to Nan when it comes to my user's perspective. I need to to know how to properly handle this scenario. 

 

Thank you for your usual support.

[Modified 4 years ago]

Comments (1)

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

Hello,

I wonder if using TargetNullValue and/or FallbackValue in your Binding would work to convert the NaN value to a zero.

If neither of those worked, you could possibly use a value converter and watch for NaN to convert it to zero.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 12 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.