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

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

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)

1 Reply

HM Hemalatha Marikumar Syncfusion Team 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. 
 
Regards, 
Hemalatha M. 
 


Loader.
Live Chat Icon For mobile
Up arrow icon