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

How to prevent execution command on right click

1 Answer 214 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Veteran
Markus asked on 10 Jan 2018, 03:02 PM

Hello,

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?

Thx.

Markus

1 Answer, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 15 Jan 2018, 11:57 AM
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.

Regards,
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.
Tags
TileList
Asked by
Markus
Top achievements
Rank 1
Veteran
Answers by
Vladimir Stoyanov
Telerik team
Share this question
or