Back to Devexpress

MapItemAttributeMapping Class

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

latest2.5 KB
Original Source

MapItemAttributeMapping Class

The mapping of an attribute applied to a map item.

Namespace : DevExpress.Xpf.Map

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

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public class MapItemAttributeMapping :
    MapDependencyObject
vb
Public Class MapItemAttributeMapping
    Inherits MapDependencyObject

Remarks

See the Provide Data Using Vector Item Attributes topic to learn more.

Example

To associate additional info with vector items generated by a DataSourceAdapterBase class descendant, use MapItemAttributeMapping objects, specify their MapItemAttributeMapping.Member (the data source members’ names) and MapItemAttributeMapping.Name (names of attributes which will be generated based on specified members), and add these objects to the DataSourceAdapterBase.AttributeMappings collection.

xaml
<dxm:ListSourceDataAdapter.AttributeMappings>
    <dxm:MapItemAttributeMapping Member="Year" Name="Year"/>
    <dxm:MapItemAttributeMapping Member="Name" Name="Name"/>
    <dxm:MapItemAttributeMapping Member="Description" Name="Description"/>
</dxm:ListSourceDataAdapter.AttributeMappings>

Inheritance

Object DispatcherObject DependencyObject Freezable MapDependencyObject MapItemAttributeMapping

See Also

MapItemAttributeMapping Members

DevExpress.Xpf.Map Namespace