MapItemAttribute Class
An attribute that can be applied to map items.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v20.1.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Map, DevExpress.Wpf.Map
Declaration
Related API Members
The following members return MapItemAttribute objects:
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>
Inheritance
See Also