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
Post a Comment