Hello ,
I'm currently working on a visualization layer to display a trace line of a Location Collection. To achieve this, I have set the ItemsSource of the layer to an Observable Collection. Additionally, I am using PolylineData to visualize the Location Collection. However, during implementation, I encountered the following errors:
- The specified value cannot be assigned. The following type was expected: "DependencyObject".
- Property 'VisualTree' does not support values of type 'PolylineData'.
Here is the code portion
<telerik:VisualizationLayer x:Name="visualizationLayer" ItemsSource="{Binding ObJItems}"><telerik:VisualizationLayer.ItemTemplate>
<DataTemplate>
<telerik:PolylineData Points="{Binding TrackPoints}">
<telerik:PolylineData.ShapeFill>
<telerik:MapShapeFill Stroke="Blue"
StrokeThickness="2" />
</telerik:PolylineData.ShapeFill>
</telerik:PolylineData>
</DataTemplate>
</telerik:VisualizationLayer.ItemTemplate>
</telerik:VisualizationLayer>