Hello Justin,
Yes, you set the Indicator's Value property. Here's a simple example you can use to confirm this:
XAML
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
telerikGauges:RadRadialGauge
>
<
telerikGauges:RadRadialGauge.Axis
>
<
telerikGauges:GaugeLinearAxis
Minimum
=
"0"
Maximum
=
"100"
Step
=
"25"
/>
</
telerikGauges:RadRadialGauge.Axis
>
<
telerikGauges:RadRadialGauge.Indicators
>
<
telerikGauges:GaugeNeedleIndicator
x:Name
=
"Indicator"
Value
=
"0"
Offset
=
"30"
/>
</
telerikGauges:RadRadialGauge.Indicators
>
<
telerikGauges:RadRadialGauge.Ranges
>
<
telerikGauges:GaugeRangesDefinition
>
<
telerikGauges:GaugeGradientRange
From
=
"0"
To
=
"100"
>
<
common:RadGradientStop
Color
=
"Green"
Offset
=
"0"
/>
<
common:RadGradientStop
Color
=
"Yellow"
Offset
=
"50"
/>
<
common:RadGradientStop
Color
=
"Red"
Offset
=
"100"
/>
</
telerikGauges:GaugeGradientRange
>
</
telerikGauges:GaugeRangesDefinition
>
</
telerikGauges:RadRadialGauge.Ranges
>
</
telerikGauges:RadRadialGauge
>
<
Slider
x:Name
=
"MySlider"
Minimum
=
"0"
Maximum
=
"100"
ValueChanged
=
"MySlider_OnValueChanged"
Margin
=
"20"
Grid.Row
=
"1"
/>
</
Grid
>
C#
Here's the demo at runtime:
If I change my approach above to use the Gauge.Indicators collection, it still works as expected:
As far as your specific problem goes, I would put a breakpoint there and make sure that you're getting a valid GaugeNeedleIndicator object before setting the Value.
Let us know how it goes.
If you're still seeing a problem, update the attached ContentPage so that it replicates the problem and send it back. with the reproducible, we can debug it directly.
Regards,
Lance | Tech Support Engineer, Sr.
Telerik by Progress
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items