Menus are added and removed based on an xml definition. Each menu item has a unique Id. I group the menus into groups (the main menu, eg File group, Edit group) so that each group has its own Click eventhandler.
1) Is there a way to save the Id to a menuitem's prop so I can retrieve this later via eventhandler params?
2) I'm thinking of overriding the GetHashCode() to return the unique Id instead. Is this possible? necessary? If not, any suggestions?
Tnx
1) Is there a way to save the Id to a menuitem's prop so I can retrieve this later via eventhandler params?
2) I'm thinking of overriding the GetHashCode() to return the unique Id instead. Is this possible? necessary? If not, any suggestions?
Tnx