MapCustomElement.ContentTemplate Property
Gets or sets the template that defines the presentation of the element’s content, represented by the MapCustomElement.Content property. This is a dependency property.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v24.2.dll
NuGet Package: DevExpress.Wpf.Map
Declaration
Property Value
Type | Description |
---|---|
DataTemplate | A DataTemplate object, representing the template which defines the presentation of the element’s content. |
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>
See Also