Articles in this section
Category / Section

How to make Syncfusion Xamarin.Forms progress bar to work in UWP in release mode when .Net Native tool chain is enabled?

1 min read

In general, Syncfusion controls (third party components) cannot be viewed in UWP when the project is built in release mode when the .Net Native tool chain(project->Build ->Compile with Native Tool chain) is enabled. To view the control in release mode, we must pass the custom renderer assemblies to Init method in OnLaunchedmethod of App.Xaml.cs file as shown below,

 

 
   protected override void OnLaunched(LaunchActivatedEventArgs e)
        {
            if (rootFrame == null)
            {
                List<Assembly> assembliesToInclude = new List<Assembly>();
 
                // Add the below line if you are using SfLinearProgressBar. 
                assembliesToInclude.Add(typeof(Syncfusion.XForms.UWP.ProgressBar.SfLinearProgressRenderer).GetTypeInfo().Assembly);
 
                // Add the below line if you are using SfCircularProgressBar.               
                assembliesToInclude.Add(typeof(Syncfusion.XForms.UWP.ProgressBar.SfCircularProgressBarRenderer).GetTypeInfo().Assembly);
                Xamarin.Forms.Forms.Init(e, assembliesToInclude);
            }
        }

 

 

 

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