Select to view content in your preferred language

ArcGIS API for SIlverlight 3.1 SIlverlight 5:  identify task

1956
1
04-20-2013 08:41 AM
EssyJames
New Contributor
ArcGIS API for SIlverlight 3.1 SIlverlight 5:  identify task

I have the following using statements:
using ESRI.ArcGIS.Client;
using ESRI.ArcGIS.Client.Geometry;
using ESRI.ArcGIS.Client.Printing;
using ESRI.ArcGIS.Client.Tasks;
using ESRI.ArcGIS.Client.Toolkit;
using ESRI.ArcGIS.Client.Toolkit.Primitives;

but I get an error in this line:

private List<DataItem> dataItems = null;

The type or namespace name 'DataItem' could not be found (are you missing a using directive or an assembly reference?
0 Kudos
1 Reply
DaveTimmins
Deactivated User
The DataItem class is just used to define your object to bind your data to the view. If you  look at the code for the identify sample in the interactive SDK http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#Identify the DataItem is defined at the bottom of the file

public class DataItem
        {
            public string Title { get; set; }
            public IDictionary<string, object> Data { get; set; }
        }


Cheers,
0 Kudos