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.

  Syncfusion.SfMaps.WPF.dll!Syncfusion.UI.Xaml.Maps.ShapeFileLayer.Refresh

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.

https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents  

Regards,
Sri Gayathri

Loader.
Up arrow icon