Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
220
Handle event for XAMContextMenu
posted

Hi,

How can I handle the event raised when we use the context menu and select a option from the menu. for e.g. I have a context menu with a option "Open". On the menuItem I want to open up a dialog window.

Can you please help, or provide some references?

Thanks,

Deven

  • 5595
    posted

    Hi,

    You can hook up to XamMenuItem's Click event and in the event handler implement the opening of the dialog window:

        <ig:ContextMenuService.Manager>

            <ig:ContextMenuManager>

                <ig:ContextMenuManager.ContextMenu>

                    <ig:XamContextMenu>

                        <ig:XamMenuItem Header="Open" Click="Open_Click" />

                    </ig:XamContextMenu>

                </ig:ContextMenuManager.ContextMenu>

            </ig:ContextMenuManager>

        </ig:ContextMenuService.Manager>

     

    HTH,

  • 485
    posted

    You can handle the click event of the XamMenuItem.