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
Sample for specifying Item template for map items: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Maps_WPF1451529338