I am trying to draw some polygons and within the polygons I want to put information about the polygon.
Eventually I will have multiple textblocks in the stackpanel. I don't understand how to bind to my additional data. I am using MVVM and my polygon binds good to Points.
If I change the textblock to <TextBlock Text="Test" /> the textblock will show in the polygon with Test. Output does not show any binding issues, it just doesn't work.
<telerik:RadMap x:Name="radMap" Center="49.002049,-101.367682" ZoomLevel="8" Width="1350" Height="700"><telerik:InformationLayer x:Name="infoLayer" ItemsSource="{Binding Model.Items}"> <telerik:InformationLayer.ItemTemplate> <DataTemplate> <telerik:MapPolygon Points="{Binding Points}" Fill="Green" > <telerik:MapPolygon.CaptionTemplate > <DataTemplate> <StackPanel Background="Yellow" > <TextBlock Text="{Binding SubItem}" /> </StackPanel> </DataTemplate> </telerik:MapPolygon.CaptionTemplate> </telerik:MapPolygon> </DataTemplate> </telerik:InformationLayer.ItemTemplate></telerik:InformationLayer></telerik:RadMap>