Hi,
i have a problem with make a change of the property EndValue of the scale.
I have this code:
Binding needlePointerBindingValue = new Binding("Value");
Binding rangePointerBindingValue = new Binding("Value");
NeedlePointer needlePointer = new NeedlePointer();
needlePointer.Type = PointerType.Triangle;
needlePointer.SetBinding(NeedlePointer.ValueProperty, needlePointerBindingValue);
needlePointer.Color = Color.Black;
needlePointer.KnobColor = Color.Black;
needlePointer.Thickness = 3;
needlePointer.KnobRadius = 6;
needlePointer.LengthFactor = 0.8;
needlePointer.EnableAnimation = true;
scaleWithValue.Pointers.Add(needlePointer);
RangePointer rangePointer = new RangePointer();
rangePointer.SetBinding(RangePointer.ValueProperty, rangePointerBindingValue);
rangePointer.Color = Color.FromRgb(control.ColorRange.r, control.ColorRange.g, control.ColorRange.b);
rangePointer.Thickness = Device.OnPlatform(iOS: 8, Android: 3.2, WinPhone: 3.2);
rangePointer.Offset = Device.OnPlatform(iOS: 0.07f, Android: 0, WinPhone: 0);
rangePointer.EnableAnimation = true;
scaleWithValue.Pointers.Add(rangePointer);
and then when EndValue change set a property of my viewModel (gaugeVM) i would that that the scale change.
this.gaugeVM.EndValue = maxValueScale;
I test this feature in Android and this work correctly.
In iOS the gauge not render correctly the change of scale and also the current value of the needle pointer and rangepointer is not correctly update.