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.
Unfortunately, activation email could not send to your email. Please try again.

NullReferenceException when trying to set Layers from code / ViewModel

Thread ID:

Created:

Updated:

Platform:

Replies:

127384 Nov 11,2016 05:50 AM Nov 14,2016 07:51 AM WPF 1
loading
Tags: Maps
pogosama
Asked On November 11, 2016 05:50 AM

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

Sri Gayathri Gopalakrishnan [Syncfusion]
Replied On November 14, 2016 07:51 AM

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

CONFIRMATION

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.

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.

;