Back to Devexpress

VectorLayer.ShapeTitleOptions Property

wpf-devexpress-dot-xpf-dot-map-dot-vectorlayer-d37e4f49.md

latest2.5 KB
Original Source

VectorLayer.ShapeTitleOptions Property

Provides presentation and visibility options for shape titles of the current vector layer.

Namespace : DevExpress.Xpf.Map

Assembly : DevExpress.Xpf.Map.v25.2.dll

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public ShapeTitleOptions ShapeTitleOptions { get; set; }
vb
Public Property ShapeTitleOptions As ShapeTitleOptions

Property Value

TypeDescription
ShapeTitleOptions

A ShapeTitleOptions object.

|

Example

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.VisibilityMode property to Visible to see titles for all loaded shapes on a map.

xaml
<Window x:Class="VectorLayerTitleOptions.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dxm="http://schemas.devexpress.com/winfx/2008/xaml/map"
        Title="MainWindow" Height="350" Width="525" >
    <Grid>
        <dxm:MapControl>
            <dxm:VectorLayer >
                <dxm:VectorLayer.ShapeTitleOptions>
                    <dxm:ShapeTitleOptions Visible="True"/>
                </dxm:VectorLayer.ShapeTitleOptions>
                    <dxm:ShapefileDataAdapter FileUri="/VectorLayerTitleOptions;component/Shapefile/SouthAmerica.shp">
                    </dxm:ShapefileDataAdapter>
            </dxm:VectorLayer>
        </dxm:MapControl>
    </Grid>
</Window>

See Also

VectorLayer Class

VectorLayer Members

DevExpress.Xpf.Map Namespace