We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Questions on changing Gauge programmatically

Thread ID:





116090 Mar 31,2014 01:09 PM Apr 2,2014 08:22 AM WinRT 3
Tags: SfCircularGauge
Bobby Harrell
Asked On March 31, 2014 01:09 PM

I have the following in XAML

<Gauges:SfCircularGauge x:Name="RateGauge" Height="200" Width="200" HorizontalAlignment="Right" Grid.Row="0">
                                <Gauges:CircularScale x:Name="RateGaugeScale" StartValue="0" EndValue="16" Interval="1" LabelStroke="OrangeRed" TickStroke="OrangeRed" EnableSmartLabels="True">
                                        <Gauges:CircularRange StartValue="0" EndValue="5" Stroke="Red"/>
                                        <Gauges:CircularRange StartValue="5" EndValue="8" Stroke="Yellow"/>
                                        <Gauges:CircularRange StartValue="8" EndValue="16" Stroke="Green"/>
                                        <Gauges:CircularPointer x:Name="RateRangePointer" PointerType="RangePointer" RangePointerStroke="OrangeRed" EnableAnimation="True" RangePointerStrokeThickness="10" />
                                        <Gauges:CircularPointer x:Name="RateNeedlePointer" PointerType="NeedlePointer" NeedlePointerStroke="OrangeRed" EnableAnimation="True"/>

My Gauge End Value is variable, so I need to ranges to be variable as well. so how do I create the above ranges programmatically

Secondly, I am trying to update my pointers programmatically, I want it to count down from the highest value to 0, but when I try to set the Value for the pointer I get a Null Reference Exception.

Joy Oyiess Rex  K [Syncfusion]
Replied On April 1, 2014 08:37 AM

Hi Bobby,


Thanks for your interest in Syncfusion Products.


We are currently analysing on this, we will let you know the detail in two business days (Apr 3, 2014)


Please let us know, if you need any further assistance.



Joy Oyiess Rex K

Bobby Harrell
Replied On April 1, 2014 11:31 AM

I figured this one out, thank you

CircularRange range = new CircularRange()

also I had to progmatically create the Needle in order to be able to update it progmatically, but It is all working now.. THanks you

Joy Oyiess Rex  K [Syncfusion]
Replied On April 2, 2014 08:22 AM

Hi Bobby,


We are glad that the issue resolved at you end itself.


Please let us know, if you need any further assistance.



Joy Oyiess Rex K


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.