Not all property wil change from the viewmodel if the are binding

I have tried to change the  the ranges of this gauge after the initialization of the view   in the behind  code but seems it does not see the change of the value.

<gauge:SfCircularGauge Grid.Row="4" Grid.ColumnSpan="3">
            <gauge:SfCircularGauge.Headers>
                <gauge:Header Text="Analisi venduto" ForegroundColor="Black"/>
            </gauge:SfCircularGauge.Headers>
            <gauge:SfCircularGauge.Scales>

                <gauge:Scale  LabelFontSize = "16" ShowRim = "False" 
                          LabelOffset = "0.95" StartValue = "0" EndValue = "100" Interval = "10" RimThickness="28" MinorTicksPerInterval ="4" >

                    <gauge:Scale.MajorTickSettings>
                        <gauge:TickSettings Thickness="1" EndOffset="0.83" StartOffset="0.75" Length="8" />
                    </gauge:Scale.MajorTickSettings>

                    <gauge:Scale.MinorTickSettings>
                        <gauge:TickSettings  Thickness="0.7"  EndOffset="0.79" StartOffset="0.75"/>
                    </gauge:Scale.MinorTickSettings>

                    <gauge:Scale.Pointers>
                        <gauge:NeedlePointer  Value="60" Type="Triangle"/>
                    </gauge:Scale.Pointers>

                    <gauge:Scale.Ranges>
                        <gauge:Range StartValue = "0" EndValue = "100" Thickness = "30" Offset = "0.6">
                            <gauge:Range.GradientStops>
                                <gauge:GaugeGradientStop Value="0" Color="#30B32D"/>
                                <gauge:GaugeGradientStop Value="50" Color="#FFDD00"/>
                                <gauge:GaugeGradientStop Value="80" Color="#F03E3E"/>
                            </gauge:Range.GradientStops>
                        </gauge:Range>

                    </gauge:Scale.Ranges>

                </gauge:Scale>

            </gauge:SfCircularGauge.Scales>

        </gauge:SfCircularGauge>

There's an answer or a way to do this easily?

Best
Alberto C.

1 Reply

MP Michael Prabhu M Syncfusion Team September 5, 2018 12:10 PM UTC

Hi Alberto, 
 
Thanks for contacting Syncfusion support. 
 
Query: Ranges not working on binding to a property in view model. 
 
We have analyzed your query, binding a property from view model to the ranges is working correctly. 
 
But on using GradientStops for ranges, it is not updating properly. We confirm this as a bug. We have logged a defect report for this. This fix will be available in our upcoming Volume 3 SP1 release. 
 
We appreciate your patience until then. 
Thanks, 
Michael 


Loader.
Up arrow icon