How to create context menu for data-bound WP Silverlight ListBox totally from code?

41 Views Asked by At

I have a classic ListBox control with a custom ItemTemplate. The ListBox is bound to a collection of objecs. How can I create a custom context menu (an instance of the ContextMenu class from Microsoft.Phone.Controls.Toolkit.dll) and attach them to my ListBox items totally from code?

0

There are 0 best solutions below