Skip to main content

How to: Show Titles for Map Shapes

This example demonstrates how to display a title for shapes loaded from Shapefiles ( SouthAmerica.dbf, SouthAmerica.shp).

To accomplish this task, it is necessary to create a ShapeTitleOptions object and assign it to the VectorLayer.ShapeTitleOptions property. Then, set the ShapeTitleOptions.Visible property to true to see titles for all loaded shapes on a map.

View Example

<Window x:Class="VectorLayerTitleOptions.MainWindow"
        Title="MainWindow" Height="350" Width="525" >
            <dxm:VectorLayer >
                    <dxm:ShapeTitleOptions Visible="True"/>
                    <dxm:ShapefileDataAdapter FileUri="/VectorLayerTitleOptions;component/Shapefile/SouthAmerica.shp">
See Also