How to prevent execution command on right click

2 posts, 0 answers
  1. Markus
    Markus avatar
    14 posts
    Member since:
    Jan 2018

    Posted 10 Jan 2018 Link to this post


    we've bound commands to the tiles in the radtilelist control. 
    Now both left and right mouse clicks execute the commands.
    But we only want that the commands will only be executed by clikcing the left button.
    It would be perfect if we can put a context menu on the right button.

    Is that possible?



  2. Vladimir Stoyanov
    Vladimir Stoyanov avatar
    638 posts

    Posted 15 Jan 2018 Link to this post

    Hello Markus,

    What I can suggest is using Telerik's EventToCommandBehavior in order to bind the MouseRightButtonClick and MouseLeftButtonClick events to different commands. I am attaching a sample project which demonstrates this approach for your reference. May I ask you to take a look at it and let me know if this approach would suit your requirements?

    I am looking forward to hearing from you.

    Vladimir Stoyanov
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top