Binding values to SfLinearGauge

Hi there!
I'm trying to bind values to a SfLinearGauge.
This is the XAML-Code:
<lineargauge:SfLinearGauge Height="100">

<lineargauge:SfLinearGauge.MainScale>

<lineargauge:LinearScale Maximum="{Binding ElementName=_pagFormularINR, Path=maxValue}" ScaleBarStroke="#E0E0E0" MajorTickStroke="Gray" MinorTickStroke="Gray" LabelStroke="#424242" ScaleBarSize="0" MinorTicksPerInterval="3" ScaleBarLength="800" RangePosition="Below">

<lineargauge:LinearScale.Ranges>

<lineargauge:LinearRange StartValue="0" EndValue="{Binding ElementName=_pagFormularINR, Path=ValueToBeShown}" RangeStroke="LightCyan" RangeOffset="0.4" StartWidth="10" EndWidth="10"/> lineargauge:LinearScale.Ranges>

lineargauge:LinearScale>

lineargauge:SfLinearGauge.MainScale>

lineargauge:SfLinearGauge>

If I add the Binding to a TextBlock the value changes and is shown but nothing happens to the Gauge. Am I missing something?


Thank you very much for your help!


Victor


1 Reply

MK Muneesh Kumar G Syncfusion Team September 6, 2018 12:21 PM UTC

Hi Victor, 
 
Greetings from Syncfusion, we have analyzed your query and checked the sample with provided code snippet in your update. It works fine with the binding. Can you please check with the sample in the following location? If still you face the problem, please revert us by modifying the sample based on your application along with replication procedure. This would be helpful for us to give better solution in this. 
 
 
Regards, 
Muneesh Kumar G 
 


Loader.
Up arrow icon