my problem is as follows:
<phone:PhoneApplicationPage.Resources>
<toolkit:MenuItem Header="edit" x:Key="mnuEdit" x:Name="mnuEdit" Click="mnuEdit_Click" />
</phone:PhoneApplicationPage.Resources>
i am trying to add this menu item to context menu in code as ctxmnuList.Items.Add(this.Resources["mnuEdit"] as MenuItem);
but during runtime i am getting InvalidOperationException
with error message as Element is already the child of another element.
kindly help for this issue. I am searching its solution from past 2 days. Any help will be highly appreciated
Thanx anywayz