It is not clear from your post what type of layer (InformationLayer
) you are using. But looking into your code I supposed that it is the InformationLayer
. The problem is that you assign an event handler after you add a line to the information layer. Because of the nature of the map shape objects it must be done before you add a line to the information layer. The following code works as expected so please give it a try on your side as well:
' This call is required by the designer.
' Add any initialization after the InitializeComponent() call.
pline.Points = points
pline.StrokeThickness = 4
Let us know if we can further assist you.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>