ShapefileReader Class
Provides functionality to load shape data from an external file in the Shapefiles format.
Namespace: DevExpress.UI.Xaml.Map
Assembly: DevExpress.UI.Xaml.Map.v21.2.dll
NuGet Package: DevExpress.Uwp.Controls
Declaration
Example
To load vector data from a Shapefile, do the following.
- Create a VectorFileLayer object and add it to the MapControl.Layers collection.
- Create an instance of the
ShapefileReader
class and assign the instance to the VectorFileLayer.FileReader property. - Create a MapFileSourceBase class descendant object, configure it and assign it to the MapFileReaderBase.FileSource property of the instance.
<Map:VectorFileLayer
ShapeStroke="{ThemeResource AppBarBackgroundThemeBrush}">
<Map:ShapefileReader>
<Map:ShapefileReader.FileSource>
<Map:MapPackageFileSource FileName="Assets\Countries.shp"/>
</Map:ShapefileReader.FileSource>
</Map:ShapefileReader>
</Map:VectorFileLayer>
Inheritance
Object
DependencyObject
MapFileReaderBase
ShapefileReader
See Also