I created a custom control XamDatagrid. I want to add two standard context menu headers dynamically. How can I add them and trigger there events. In my current project, I can add them but I'm unable to trigger there events. Is that possible? Also if a another programmer uses my control and adds other context menu items will it override mines? Attached is my sample project.
Hello,
Thank you for your post. I have been looking into it and the sample you have attached, but I am not completely sure how do you add your ContextMenus, so could you please modify the sample, so there are the ContextMenus in order to be able to investigate your issue further.
Looking forward for your reply.
I have attached a better sample for you. In this sample created a context manager then added menu items to it. However when the custom control is dropped on the page and I try to added new items they dont show up. If I try to added the dynamic menu items in the datagrid loaded event their events never fire off.