This is a migrated thread and some comments may be shown as answers.

MouseDown doesn't work on MapPolyline

1 Answer 7 Views
Map
This is a migrated thread and some comments may be shown as answers.
Pavel
Top achievements
Rank 1
Pavel asked on 13 Nov 2013, 07:02 AM
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?

Sample project: https://www.dropbox.com/s/rhxsnllca5unxk0/TestSilverlightTelerik.zip

Thank you!

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 13 Nov 2013, 11:41 AM
Hello Pavel,

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.

Sign up for Free application insights >>
Tags
Map
Asked by
Pavel
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or