Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148948 | Nov 8,2019 11:09 AM UTC | Nov 25,2019 10:45 AM UTC | Xamarin.Forms | 3 |
![]() |
Tags: SfCircularGauge |
…
public double Value
{
get
{
return this.value;
}
set
{
if (this.value != value)
{
this.value = value;
ValidateValue(value);
OnPropertyChanged("Value");
}
}
}
private async void ValidateValue(double value)
{
// If current value is Scale's End value
if (value == this.Gauge.Scales[0].EndValue)
{
await Task.Delay(this.resetDelay);
// little before the animation get completed, reset the NeedlePointer's value to Scale's StartValue without animation.
this.Gauge.Scales[0].Pointers[0].EnableAnimation = false;
this.Value = this.Gauge.Scales[0].StartValue;
this.Gauge.Scales[0].Pointers[0].EnableAnimation = true;
}
}
… |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.