Click here to Skip to main content
15,890,973 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

I have created a custom control which contains a button in which we have an image and a polygon. Now when I am using this custom control, I want to create contextmenu for it.

i.e. CustomButtonControl is our customized control. How can I use it as in the following way?

<q:custombuttoncontrol xmlns:q="#unknown">
<q:custombuttoncontrol.contextmenu>
<contextmenu>
<menuitem x:name="menuItem1" click="menuItem1_Click" xmlns:x="#unknown">
<menuitem x:name="menuItem2" click="menuItem2_Click" xmlns:x="#unknown">




But I am getting several errors when I am trying to give contextmenu for my customized user control. Please let me know how to handle this.

Thanks in advance.
Posted
Comments
Sergey Alexandrovich Kryukov 21-Mar-13 1:06am    
Fix your errors. I have no idea what errors do you have, I don't have them.
—SA
rohith naik 23-Mar-13 6:44am    
If you tell us your errors we can help you.

1 solution

Errors and exceptions solved. Thanks..!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900