Hello Every One , i am working with arcgis APi for silverlight and i have some difficult,
i Have two(2) combobox comboboxlayer and comboboxfields i would like bring back all the fields of the selected layers in comboboxlayers is there someone who knows how to do that ?
public List<string> fields = new List<string>();
foreach (var element in ((FeatureLayer)MapApplication.Current.SelectedLayer).LayerInfo.Fields)
{
fields.Add(element.FieldName.ToString());
}
Listbox.ItemsSource = fields;
Thanks for the reply but it does not work for me I want to know what The variable ''MapApplication'' represent in the contexte (Namespace or the name of my Map) thanks again