I'd like to list map layers from map into combobox. I tried to set itemsource of combobox to: ItemsSource = "{Binding ElementName=Map, Path=Layers}. It does not list the layer names. It just lists "Esri.ArcGIS.Client.FeatureLayer". How can I list layers with their names in my combobox?


I found it :

<ComboBox x:Name="cmblayers"  ItemsSource ="{Binding ElementName=Map, Path=Layers}"    >

                                        <TextBlock Text="{Binding LayerInfo.Name}"/>


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.