windows phone 7 - how to get parent name of a context menu item? -


i'm trying parent name of context menu item.

so tried on menuitem_click :

button clikance = (button)sender; string ladygaga = convert.tostring(clikance.content); 

but didn't work (invalid cast exception). thx help

i have use different approach getting sender button of context menu. have made event on "hold_click"

where have content of button in public string

private void gesturelistener_doubletap(object sender, gestureeventargs e) {     button clikance = (button)sender;     buttonenvoyeur = convert.tostring(clikance.content); } 

Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -