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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

NullReferenceException when trying to set Layers from code / ViewModel

Thread ID:





127384 Nov 11,2016 10:50 AM UTC Nov 14,2016 12:51 PM UTC WPF 1
Tags: Maps
Asked On November 11, 2016 10:50 AM UTC

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

Sri Gayathri Gopalakrishnan [Syncfusion]
Replied On 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


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