Category / Section
How to make SfDiagram to work in UWP in release mode when .NET Native tool chain is enabled
1 min read
Description:
This article describes how to make Syncfusion Xamarin.Forms SfDiagram to work in UWP in release mode when .Net Native tool chain is enabled?
Solution:
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 OnLaunched method of App.Xaml.cs file as shown below,
C#
protected override void OnLaunched(LaunchActivatedEventArgs e) { ... if (rootFrame == null) { List<Assembly> assembliesToInclude = new List<Assembly>(); assembliesToInclude.Add(typeof(Syncfusion.SfDiagram.XForms.UWP.SfDiagramRenderer).GetTypeInfo().Assembly); Xamarin.Forms.Forms.Init(e, assembliesToInclude); } ... }