I would like to add a custom command with an icon to the context menu of the SfDiagram, but when I try to set the icon to the image that is stored in the images folder of the application, no icon is shown. See my code:
DiagramMenuItem menu = new DiagramMenuItem()
{
Content = "Open module",
Command = new DelegateCommand(Open_Module),
Icon = "images/open.ico"
};
MainDiagram.Menu.MenuItems.Add(menu);
What am I doing wrong?