Articles in this section
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();
        }
 

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied