We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

HeaderView causes NullReferenceException

Thread ID:





142048 Jan 16,2019 02:55 PM UTC Jan 17,2019 01:14 PM UTC Xamarin.Forms 3
Tags: SfCalendar
Asked On January 16, 2019 02:59 PM UTC

Hi there, 

Have been trying out the SfCalendar for my app. The standard control seems to work fine but when I try to change the HeaderView I get a NullReferenceException. Using version My code is:


Have attached the stack traces on iOS and Android respectively.

Many thanks


Attachment: Stack_Traces_bcc63718.zip

Replied On January 16, 2019 02:59 PM UTC

    <sf:SfCalendar x:Name="Bob">
            <Label Text="Bob"/>

Replied On January 16, 2019 05:30 PM UTC

I get the same NullReferenceException when I try to customize the CellTemplate, and with other controls when I customize appearance.

What I have discovered is that using stable Xamarin.Forms there is no issue but with I get the Exceptions. Seems there is a breaking change coming to many Syncfusion components.

Arun siva [Syncfusion]
Replied On January 17, 2019 01:14 PM UTC

Hi William, 
Thanks for contacting Syncfusion support, 
We have analyzed the reported issue “NullReferenceException throws when sets header view for calendar with Xamarin forms version pre-2” and as this version of Xamarin Forms is a prerelease version, hence it may has some bugs in this case the Platform property of VisualElement return as null, while get the property using Reflection, hence kindly use the latest stable version ( of Xamarin Forms, in which it works fine without the exception. 
Kindly revert us if you have any concern. 
Arun Siva R


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon