MapBubble.CustomMarkerTemplate Property
Gets or sets the template of a bubble chart.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
DataTemplate | A System.Windows.DataTemplate object that defines the presentation of the bubble chart. |
Remarks
The CustomMarkerTemplate property is used if the MapBubble.MarkerType property value equals MarkerType.Custom.
Example
This example demonstrates how to specify a custom marker template used by a bubble chart.
To do this, assign the required marker template to the MapBubble.CustomMarkerTemplate
property of a MapBubble object.
Note that the MapBubble.MarkerType property should be set to Custom.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-use-a-custom-marker-template-used-by-a-bubble-chart-t212506.
<dxm:MapBubble Size="50" MarkerType="Custom">
<dxm:MapBubble.CustomMarkerTemplate>
<DataTemplate>
<Rectangle Fill="{Binding Fill}"
Stroke="{Binding Stroke}"/>
</DataTemplate>
</dxm:MapBubble.CustomMarkerTemplate>
</dxm:MapBubble>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CustomMarkerTemplate property.
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.