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

NullReferenceException when trying to set Layers from code / ViewModel

I'm trying to set the Layers property programmatically (from a ViewModel class), but I got a NullReferenceException somewhere in the Refresh method:
  System.NullReferenceException was unhandled
  Message: An unhandled exception of type 'System.NullReferenceException' occurred in Syncfusion.SfMaps.WPF.dll
  Additional information: Object reference not set to an instance of an object.


Did I do something wrong? I've included a sample project in the attachment.

Attachment: SISTAR_b93d71d0.zip

1 Reply

SG Sri Gayathri Gopalakrishnan Syncfusion Team November 14, 2016 12:51 PM UTC

Hi Erik,

We have created a separate incident for further follow up's about “NullReferenceException when trying to set Layers from code / ViewModel” under your Direct-trac login account.


Sri Gayathri

Live Chat Icon For mobile
Up arrow icon