Hi,
I try to implement the SfCalendar in a Xamarin.Forms App with Android, iOS, and UWP. I followed the instructions from the online documentation - getting started section. On Android and iOS it works perfectly, on UWP I get the following exception when the XAML page loads:
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.UI.Xaml.Controls.Input.SfCalendar.SfCalendar_HeaderLoadedEvent(DataTemplate dataTemplate)
at Syncfusion.UI.Xaml.Controls.Input.SfCalendar.CalendarLoaded(Object sender, RoutedEventArgs e)
SfCalendar Version 14.3.0.49
Xamarin Forms 2.3.2.127
XAML:
<xForms:SfCalendar x:Name="SfCalendar" ViewMode="MonthView" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"/>
Code on page initialization:
SfCalendar.MaxDate = DateTime.Now.AddDays(100);
SfCalendar.MinDate = DateTime.Now;
Referenced DLL's in UWP project (14.3.0.49):
Syncfusion.SfInput.UWP.dll
Syncfusion.SfShared.UWP.dll
Syncfusion.SfCalendar.XForms.dll
Syncfusion.SfCalendar.XForms.UWP.dl
Is there anything I missed to initialize for UWP?
Another issue I found is, that the Xamarin SfCalendar NuGet Package only contains the dll's for Android and iOS, not for UWP.
Thanks for your help
Rudy