Back to Devexpress

MapBubbleSettings.CustomMarkerTemplate Property

wpf-devexpress-dot-xpf-dot-map-dot-mapbubblesettings-8a2985fe.md

latest2.8 KB
Original Source

MapBubbleSettings.CustomMarkerTemplate Property

Gets or sets the template of a bubble chart.

Namespace : DevExpress.Xpf.Map

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

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public DataTemplate CustomMarkerTemplate { get; set; }
vb
Public Property CustomMarkerTemplate As DataTemplate

Property Value

TypeDescription
DataTemplate

A System.Windows.DataTemplate object that defines the presentation of the bubble chart.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to CustomMarkerTemplate
BubbleChartDataAdapter

.BubbleSettings .CustomMarkerTemplate

|

Remarks

The CustomMarkerTemplate property is used if the MapBubbleSettings.MarkerType property value equals MarkerType.Custom.

Example

This example shows how to specify a custom marker template to be used by automatically generated bubble chart items.

To do this, create a MapBubbleSettings object and assign it to the BubbleChartDataAdapter.BubbleSettings property of the BubbleChartDataAdapter. Then, specify the MapBubbleSettings.CustomMarkerTemplate property of the object. Note that the MapBubbleSettings.MarkerType property should be set to Custom.

xaml
<dxm:BubbleChartDataAdapter.BubbleSettings>
    <dxm:MapBubbleSettings MarkerType="Custom">
        <dxm:MapBubbleSettings.CustomMarkerTemplate>
            <DataTemplate>
                <Rectangle Fill="{Binding Fill}" 
                         Stroke="{Binding Stroke}"/>
            </DataTemplate>
        </dxm:MapBubbleSettings.CustomMarkerTemplate>
    </dxm:MapBubbleSettings>
</dxm:BubbleChartDataAdapter.BubbleSettings>

See Also

MapBubbleSettings Class

MapBubbleSettings Members

DevExpress.Xpf.Map Namespace