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