Back to Devexpress

How to: Show a Title for a Vector Element

wpf-12239-controls-and-libraries-map-control-examples-vector-data-customize-data-appearance-how-to-show-a-title-for-a-vector-element.md

latest2.4 KB
Original Source

How to: Show a Title for a Vector Element

  • Jun 07, 2019

This example illustrates how to add a title to a map’s dot.

To accomplish this, create a ShapeTitleOptions object and assign it to the MapShapeBase.TitleOptions property. Then, specify the title’s text via the ShapeTitleOptions.Pattern property.

Note that the title’s text can be invisible on a map. So make sure the ShapeTitleOptions.VisibilityMode property is set to Visible.

xaml
<dxm:MapDot.TitleOptions>
    <dxm:ShapeTitleOptions Visible="True" Pattern="Chicago" />
</dxm:MapDot.TitleOptions>

See Also

How to: Show Titles for Map Shapes

How to: Show Tooltips for Map Shapes

How to: Create a Map Item Attribute and Show its Value in the Map Tooltip

How to: Customize the Appearance of a Vector Element

How to: Customize the Appearance of a Vector Element's Title

How to: Customize the Appearance of a Map Pushpin

How to: Customize Animation of a Map Pushpin

How to: Provide Cylindrical Equal-Area Projections