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

Set ContextMenu

1 Answer 51 Views
Menu
This is a migrated thread and some comments may be shown as answers.
ruty
Top achievements
Rank 1
ruty asked on 06 Apr 2009, 09:25 AM
Hi,

I have a big rectangle, it contains alot of small rectangles, and when pressing one of them, I need a context menu to open, and when pressing an empty area in the big rectangle, I need a different context menu to open - exactly where the mouse pointer is.
How I do it????
Thanks.

1 Answer, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 08 Apr 2009, 02:50 PM
Hi ruty,

I prepared a sample for you. I used a collection of buttons to attach same context menu to 3 buttons. I did not use Rectangles as they can't have child. You cannot have Big rectangle with small rectangles in it . I have attached 1 context menu to the UserControl so you can click anywhere in the yellow area and you will get a context menu. And there are 3 buttons on the page. When you right click on them you will get different context menu.

Please take a look at the attached project and tell me if you need more help.

p.s. Please remember to set Windowless="true" for your Silverlight page, it is set in the .aspx page of your Web project.

Greetings,
Boyan
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Menu
Asked by
ruty
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Share this question
or