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

MapBubble.CustomMarkerTemplate Property

Gets or sets the template of a bubble chart.

Namespace: DevExpress.Xpf.Map

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

NuGet Package: DevExpress.Wpf.Map

#Declaration

public DataTemplate CustomMarkerTemplate { get; set; }

#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.

<dxm:MapBubble Size="50" MarkerType="Custom">
    <dxm:MapBubble.CustomMarkerTemplate>
        <DataTemplate>
            <Rectangle Fill="{Binding Fill}" 
                           Stroke="{Binding Stroke}"/>
        </DataTemplate>
    </dxm:MapBubble.CustomMarkerTemplate>
</dxm:MapBubble>
See Also