Category / Section
How to resolve SfDateTimeRangeNavigator 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 calling Init method of SfRangeNavigatorRenderer class in the respective projects as mentioned below.
iOS Project
Call Init method of SfRangeNavigatorRenderer in FinishedLaunching overridden method of AppDelegate class in iOS Project as shown below,
Code Snippet
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { ... Syncfusion.RangeNavigator.XForms.iOS.SfRangeNavigatorRenderer.Init(); ... }
UWP Project
Call Init method of SfRangeNavigatorRenderer in the constructor of MainPage in UWP project as shown below.
Code Snippet
public MainPage() { ... Syncfusion.RangeNavigator.XForms.UWP.SfRangeNavigatorRenderer.Init(); ... }