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

Disable Right Click in AutoHideArea

3 Answers 53 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Toby Riley
Top achievements
Rank 1
Toby Riley asked on 14 Feb 2011, 04:25 PM
I have disabled the standard right click functionality in my application but the AutoHideArea of the docking control still allows this because it is a popup.
How can I disable this?

Thanks.

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 17 Feb 2011, 04:05 PM
Hello Tobias,

 
How do you disable the right click? If you give us more information about your scenario it would be very helpful.

Best wishes,
George
the Telerik team
0
Toby Riley
Top achievements
Rank 1
answered on 17 Feb 2011, 04:10 PM
To prevent right click you do this on the container:

LayoutRoot.MouseRightButtonDown += (s, e) => { e.Handled = true; };
0
George
Telerik team
answered on 22 Feb 2011, 03:25 PM
Hello Tobias,

 
I would suggest you to use the VisualTreeHelper.GetOpenPopups() method. This will return all opened popups. You could disable the right click in each one manually.

I hope this helps.

Greetings,
George
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Docking
Asked by
Toby Riley
Top achievements
Rank 1
Answers by
George
Telerik team
Toby Riley
Top achievements
Rank 1
Share this question
or