How to: Load Vector Data from a KML File

To load vector data from a KML file, do the following.

<Map:VectorFileLayer
    ShapeStroke="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    <Map:KmlReader>
        <Map:KmlReader.FileSource>
            <Map:MapPackageFileSource 
                FileName="Assets\States.kml"/>
        </Map:KmlReader.FileSource>
    </Map:KmlReader>
</Map:VectorFileLayer>