MapCustomElementSettings Class
Contains settings to generate custom map elements.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v18.2.dll
Declaration
Related API Members
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
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-customize-a-mini-maps-layers-t200327.
<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>
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the MapCustomElementSettings class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.