MapItemAttribute.Name Property
Gets the attribute’s name.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v20.1.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Map, DevExpress.Wpf.Map
Declaration
Property Value
Type | Description |
---|---|
String | A String value that specifies the attribute’s name. |
Example
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-create-a-map-item-attribute-and-show-its-value-in-the-map-tooltip-e5114.
<dxm:VectorLayer Name="itemsLayer">
<dxm:MapItemStorage>
<dxm:MapPolygon
ToolTipPattern="{}Triangle Area: {areaValueAttrName}"
Points="0,0,0,40,40,0,0,0">
<dxm:MapPolygon.Attributes>
<dxm:MapItemAttribute Name="areaValueAttrName"
Type="{x:Type sys:Double}"
Value="80" />
</dxm:MapPolygon.Attributes>
</dxm:MapPolygon>
</dxm:MapItemStorage>
</dxm:VectorLayer>
See Also