I created a style for a ListViewItem with a ContextMenu so that when I right click on a ListViewItem I can delete/remove it via the ContextMenu.
And my ListView:
Sadly this code throws an error whenever I try to run it. I get an invalid cast Exception saying that it cannot convert MenuItem into Grid.
What I should also say is that my ListView is filled with MenuItems
public class MenuItem
{
public int Quantity { get; set; }
public int Id { get; set; }
public string Name { get; set; }
public int Price { get; set; }
}