MouseDown doesn't work on MapPolyline

2 posts, 0 answers
  1. Pavel
    Pavel avatar
    17 posts
    Member since:
    Nov 2011

    Posted 13 Nov 2013 Link to this post

    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!
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 13 Nov 2013 Link to this post

    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 >>
  3. DevCraft banner
Back to Top