I need to perform some actions on left mouse click (MapPolyline event). I've created a test project but can't make it work.
How can I implement this behavior?
Unfortunately the map shapes do not support event triggers and behaviors attached in DataTemplates. We have created a PITS issue to implement it in future releases. You can track implementation of this feature through the following link: http://www.telerik.com/support/pits.aspx#/public/silverlight/5580
In the meantime as a workaround you can attach event handlers like this:
<Telerik:MapPolyline Points="{Binding Points}"
Stroke="{StaticResource PolylineBrush}"
StrokeThickness="20"
MouseLeftButtonDown="MouseLeftButtonDown">
</Telerik:MapPolyline>
Regards,
Andrey Murzov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.