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

MapCustomElementSettings Class

Contains settings to generate custom map elements.

Namespace: DevExpress.Xpf.Map

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

NuGet Package: DevExpress.Wpf.Map

#Declaration

public class MapCustomElementSettings :
    MapItemSettings

The following members return MapCustomElementSettings objects:

#Remarks

This class introduces the MapCustomElementSettings.ContentTemplate, MapCustomElementSettings.ContentTemplateSelector and MapCustomElementSettings.Template properties, which allow specifying the content template, template selector and template of all map custom elements generated using these settings.

#Example

<dxm:ListSourceDataAdapter.ItemSettings> 
    <dxm:MapCustomElementSettings>
        <dxm:MapCustomElementSettings.ContentTemplate>
            <DataTemplate>
                <Image Source="Images/Ship.png" Width="40" Height="40">
                    <Image.RenderTransform>
                        <TranslateTransform X="-20" Y="-20"/>
                    </Image.RenderTransform>
                </Image>
            </DataTemplate>
        </dxm:MapCustomElementSettings.ContentTemplate>
    </dxm:MapCustomElementSettings>
</dxm:ListSourceDataAdapter.ItemSettings>
See Also