I have implemented SfCircularProgressBar and the circle progress is not synced with the progress value, I'm displaying the progress value in a UILabel and it reflects the value correctly. I attached a screenshot. Here's the code:
ProgressView = new SfCircularProgressBar()
{
TranslatesAutoresizingMaskIntoConstraints = false,
Hidden = true,
BackgroundColor = UIColor.Clear,
Minimum = 0,
Maximum = 100,
};
ProgressView.ProgressColor = App_Settings.OrangeColor;
this.AddSubview(ProgressView);
ProgressView.CenterYAnchor.ConstraintEqualTo(this.CenterYAnchor, 0).Active = true;
ProgressView.CenterXAnchor.ConstraintEqualTo(this.CenterXAnchor, 0).Active = true;
ProgressView.WidthAnchor.ConstraintEqualTo(80).Active = true; ProgressView.HeightAnchor.ConstraintEqualTo(80).Active = true;
// progress while downloading UIimage
InvokeOnMainThread(() =>
{
ProgressView.Hidden = false;
var progress = 100 * (decimal.Divide(result.Current, result.Total));
ProgressView.Progress = (double)progress;
SetCustomContentProgress((int)progress); // display progress in uilabel
});
Thanks,