Adding a range item to a Linear Gauge

Gauge for WPF Forum

Posted 13 years ago by Mike Marshall
Avatar
I want to add a min and max bar on a linear gauge i.e. when a reading goes over +- 15% for example.

I can see how it's done on a circular gauge but it's not obvious on a linear one?

Any help appreciated.

Thanks

Comments (3)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Mike,

The CircularGauge and LinearGauge have largely the same features. You can add one or more LinearRanges to the LinearGauge to highlight areas of interest.

Either way, I'm not entirely sure what you are asking. If you can please clarify, maybe using CircularGauge as an example, then we can take a closer look.


Actipro Software Support

Posted 13 years ago by Mike Marshall
Avatar
I have a circular gauge and I set some CircularRange values as follows for MAX and MIN warning ranges.

<gauge:CircularTickSet.Ranges>
<gauge:CircularRange StartValue="41" EndValue="79" StartExtent="15.4%" EndExtent="15.4%"
HasDropShadow="False" ScalePlacement="Inside"
Background="{shared:LinearGradientBrush #FCCD07, #FBD103, GradientType=TopLeftToBottomRight}" />
<gauge:CircularRange StartValue="81" EndValue="99" StartExtent="15.4%" EndExtent="15.4%"
HasDropShadow="False" ScalePlacement="Inside"
Background="{shared:LinearGradientBrush #07FA04, #4AFF02, GradientType=TopLeftToBottomRight}" />
</gauge:CircularTickSet.Ranges>

I can't see the equivalent in a Linear gauge?

Have you some example code?

Thanks
Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Mike,

The LinearGauge equivalent would be almost identical (you'd simply replace "Circular" with "Linear"). You can see the LinearGauge Ranges QuickStart for some examples.


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.