Articles in this section
Category / Section

How to specify ItemTemplate to shape file layer

1 min read

You can specify your own template to the items in shape file layer by defining the ItemTemplate for the shape file layer. The item template is used to override the default template for map items. The “Data” property holds the object for a map item.


<syncfusion:ShapeFileLayer.ItemsTemplate>
                        <DataTemplate>
                            <Border Background="Transparent">
                                <TextBlock FontFamily="Segoe UI" FontSize="12" Foreground="#FF333333" Text="{Binding Data.OSM_ID}"/>
                            </Border>
                        </DataTemplate>
                    </syncfusion:ShapeFileLayer.ItemsTemplate>

 

Output Image

Specify item template to shape file layer using SfMaps

Sample for specifying Item template for map items: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Maps_WPF1451529338

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied