This is the xaml code where i am assigning the layer which is to be my featurelayer which has been highlighted with maroon color . And below that is my code behind ..
I am getting error when i try to access the field names of the layer . I get 0 fields . Can anybody help out with this prob .. Thanks
Code Behind code Dim f As ESRI.ArcGIS.Client.Layer = CType(Map1.Layers("city"), ESRI.ArcGIS.Client.Layer) Dim a As ESRI.ArcGIS.Client.FeatureLayer = CType(f, ESRI.ArcGIS.Client.FeatureLayer) Dim i As Integer = -1 If Not a.LayerInfo Is Nothing Then For i = 0 To a.LayerInfo.Fields.Count - 1 field.Items.Add(a.LayerInfo.Fields(i).Type) Next End If End If