Back to Devexpress

MapItemAttributeCollection Class

wpf-devexpress-dot-xpf-dot-map-f6644ef7.md

latest3.4 KB
Original Source

MapItemAttributeCollection Class

A collection of attributes for an individual map item.

Namespace : DevExpress.Xpf.Map

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

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public class MapItemAttributeCollection :
    MapDependencyObjectCollection<MapItemAttribute>
vb
Public Class MapItemAttributeCollection
    Inherits MapDependencyObjectCollection(Of MapItemAttribute)

The following members return MapItemAttributeCollection objects:

Remarks

An object of this class is accepted using the MapItem.Attributes property.

Example

To associate additional information to a vector item, use the vector item atributes. To do this, create an MapItemAttribute object, specify its MapItemAttribute.Name, MapItemAttribute.Value and optionally, the MapItemAttribute.Type. Add the object to the MapItem.Attributes collection. After that, it is possible to use these attributes, for example, to display in the item’s title.

xaml
<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>

Inheritance

Object DispatcherObject DependencyObject Freezable Animatable FreezableCollection<MapItemAttribute> MapDependencyObjectCollectionBase<MapItemAttribute> MapDependencyObjectCollection<MapItemAttribute> MapItemAttributeCollection

See Also

MapItemAttributeCollection Members

DevExpress.Xpf.Map Namespace