How to open shape file in ArcGIS Runtime WPF SDK as Graphics/Feature layer

Discussion created by kev84 on Jan 23, 2013
Latest reply on Jun 6, 2014 by psaravanaa
I googled and followed this tutorial and figured out how to import Shape files and Rasters into Runtime.

However, it seems most of the functionality uses a FeatureLayer/GraphicLayer instead an ArcGISLocalDynamicMapServiceLayer that the sample uses.

My question is if there is a way I can import the shape file as a graphics layer or if i can somehow cast my ArcGISLocalDynamicMapServiceLayer as a Graphics layer because shape file is essentially the same as a shape file.

An example is i'm trying to use the FeatureDataGrid() to show the attribute table of my shapep file, but I can't since it requires a graphics layer, not an ArcGISLocalDynamicMapServiceLayer.

Thanks and Regards, Kev