Skip to main content
A newer version of this page is available. .

MapCustomElement.Template Property

Specifies the template that defines the appearance of the map custom element.

Namespace: DevExpress.Xpf.Map

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

Declaration

public ControlTemplate Template { get; set; }

Property Value

Type Description
ControlTemplate

A ControlTemplate object that represents the template that displays a map custom element.

Example

<dxm:MapCustomElement>
    <dxm:MapCustomElement.ContentTemplate>
        <DataTemplate>
            <Border Name="border" BorderBrush="DarkGray"  
                Background="LightGray" BorderThickness="1"
                Padding="5" Margin="5" CornerRadius="5">
                <StackPanel Orientation="Horizontal">
                    <Image Source="DevExpress.png" Width="40" 
                       Height="40" Margin="5"/>
                    <TextBlock Text="This is a custom element." 
                           TextAlignment="Center" FontSize="18"
                           VerticalAlignment="Center" Margin="5"/>
                </StackPanel>
            </Border>
        </DataTemplate>
    </dxm:MapCustomElement.ContentTemplate>
</dxm:MapCustomElement>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Template 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.

See Also