G
Guest
Hi,
I have a tricky problem on my hands. Not sure if it is possible or not.
Basically, in my app I dynamically create MenuItems for a ContextMenu. This
part is fine, however, when I click the menu item, I want to capture the text
which is present on that menu item. How can I capture the text that is
present on that menu item? The number of menu items is not fixed. Could I
somehow dynamically create Click events ? And even if i did that, wouldnt I
need to provide the implementation of that click event? Or could I have some
kind of generic click event which can be used for each menu item?
Any pointers or suggestions most welcome.
Cheers,
David
I have a tricky problem on my hands. Not sure if it is possible or not.
Basically, in my app I dynamically create MenuItems for a ContextMenu. This
part is fine, however, when I click the menu item, I want to capture the text
which is present on that menu item. How can I capture the text that is
present on that menu item? The number of menu items is not fixed. Could I
somehow dynamically create Click events ? And even if i did that, wouldnt I
need to provide the implementation of that click event? Or could I have some
kind of generic click event which can be used for each menu item?
Any pointers or suggestions most welcome.
Cheers,
David