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

SfButton System.NullReferenceException: Object reference not set to an instance of an object.

Thread ID:





149833 Dec 11,2019 09:37 AM UTC Dec 12,2019 08:35 AM UTC Xamarin.Forms 1
Tags: SfButton
Asked On December 11, 2019 09:40 AM UTC

When i try to change the content property of sfbutton based on the visual state, i get the below issue in UWP for pressed visual state.

I have created the button in code behind.

System.NullReferenceException: Object reference not set to an instance of an object.
   at Syncfusion.XForms.UWP.Buttons.TouchEffectRenderer.TouchRelease(Double x, Double y)
   at Syncfusion.XForms.UWP.Buttons.TouchEffectRenderer.TouchEffectRenderer_PointerReleased(Object sender, PointerRoutedEventArgs e)

Hemalatha Marikumar [Syncfusion]
Replied On December 12, 2019 08:35 AM UTC

Hi Sara, 
Greetings from Syncfusion. 
We were able to reproduce the reported issue and confirmed “NullReferenceException is thrown while changing the Content property of SfButton with VSM” as a bug. Please use the below feedback link to track the status of reported issue. 
We will fix and include this in our next rolled out weekly Nuget release which is expected to be rolled out by end of December 2019. 
We appreciate your patience until then. 
Hemalatha M. 


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