Select to view content in your preferred language

LayerItemViewModel.LayerType = null

651
2
12-07-2010 07:16 AM
AndrewWhite
Emerging Contributor
Why is the LayerItemViewModel.LayerType always null unless it's a "Group Layer"?

I'm writing a ValueConverter in order to display nodes differently in the Legend control based on their LayerType.  For example, I need to know the difference between an Annotation Layer and an Annotation Sub Layer.  Also, I need to know if a layer is a Raster Layer.  I appear to be at a dead end though, because the Layer Type is always null in these cases.

Help!
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
You are right, it's a bug.

Hopefully, it will be fixed in the next version.
Sorry about that.
0 Kudos
AndrewWhite
Emerging Contributor
Thank you for the quick and straightforward answer.

I will look for that in the next version, then.

Other than that, let me take this opportunity to tell you how happy I am with the Legend control.  Thank you!
0 Kudos