Category / Section
How to resolve progress bar not rendering issue in iOS and UWP?
1 min read
Xamarin does not load the renderer assemblies, by default, in iOS and UWP projects, so in order to solve this, you have to manually load it by creating an instance of SfLinearProgressBarRenderer or SfCircularProgressBarRenderer class in the respective projects as mentioned below.
iOS Project
Call Init method of SfLinearProgressBarRenderer or SfCircularProgressBarRenderer in FinishedLaunching overridden method of AppDelegate class in iOS Project as shown below,
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { // Add the below line if you are using SfLinearProgressBar. Syncfusion.XForms.iOS.ProgressBar.SfLinearProgressBarRenderer.Init(); // Add the below line if you are using SfCircularProgressBar. Syncfusion.XForms.iOS.ProgressBar.SfCircularProgressBarRenderer.Init(); }
UWP Project
Call Init method of SfLinearProgressBarRenderer or SfCircularProgressBarRenderer in the constructor of MainPage in UWP project as shown below.
public MainPage() { // Add the below line if you are using SfLinearProgressBar. new Syncfusion.XForms.UWP.ProgressBar.SfLinearProgressRenderer(); // Add the below line if you are using SfCircularProgressBar. new Syncfusion.XForms.UWP.ProgressBar.SfCircularProgressBarRenderer(); }