Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

MapItemAttribute Class

An attribute that can be applied to map items.

Namespace: DevExpress.Xpf.Map

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

NuGet Package: DevExpress.Wpf.Map

#Declaration

public class MapItemAttribute :
    MapDependencyObject,
    IMapItemAttribute,
    IOwnedElement

The following members return MapItemAttribute objects:

#Example

<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