Skip to main content
A newer version of this page is available. .

ShapeTitleOptions.Template Property

Gets or sets the template that defines the presentation of shape titles. This is a dependency property.

Namespace: DevExpress.Xpf.Map

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Map, DevExpress.Wpf.Map

Declaration

public DataTemplate Template { get; set; }

Property Value

Type Description
DataTemplate

A DataTemplate object that defines an element’s presentation.

Property Paths

You can access this nested property as listed below:

Show 15 property paths
Object Type Path to Template
MapBubble
.TitleOptions .Template
MapChartItemBase
.TitleOptions .Template
MapDot
.TitleOptions .Template
MapEllipse
.TitleOptions .Template
MapLine
.TitleOptions .Template
MapPath
.TitleOptions .Template
MapPie
.TitleOptions .Template
MapPolygon
.TitleOptions .Template
MapPolyline
.TitleOptions .Template
MapPolylineBase
.TitleOptions .Template
MapRectangle
.TitleOptions .Template
MapShape
.TitleOptions .Template
MapShapeBase
.TitleOptions .Template
MapSpline
.TitleOptions .Template
VectorLayer
.ShapeTitleOptions .Template

Example

The following example demonstrates how to customize the map shape title.

To customize a title, do the following.

View Example

<dxm:ShapeTitleOptions x:Key="titleOptions" 
                       Pattern="{}{Name}" Visible="True">
    <dxm:ShapeTitleOptions.Template>
        <DataTemplate>
            <TextBlock Text="{Binding Text}"
                       Foreground="Blue" Margin="0,0,0,20"/>
        </DataTemplate>
    </dxm:ShapeTitleOptions.Template>
</dxm:ShapeTitleOptions>
                    <dxm:MapDot Location="51.507222, -0.1275" Size="10" Fill="Red" 
                                TitleOptions="{StaticResource titleOptions}">
                        <dxm:MapDot.Attributes>
                            <dxm:MapItemAttribute Name="Name" Value="London"/>
                        </dxm:MapDot.Attributes>
                    </dxm:MapDot>
See Also