I have a custom Xamdatagrid control. Programmers will use this custom control and add there necessaery menu items. I want to know if there is a way in the datagrid custom control to check if there are any menu items the programmer created and if not add menu items. I've attached a sample project to this post to clarify.
Hello,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Thank you this helped very much.
Thank you for your post. I have been looking into and the sample you have sent and I modified it, so now it works as you want. Basically in the custom XamDataGrid’s Loaded event I check if there is an added ContectMenu and if so, whether there are Items in it, in order to determine what actions should I take. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.