In a WPF app using Eikon .NET Integration API I'm trying to hide all entries in the built-in right-click menu. I used the following code to make sure I didn't miss anything in the enumeration. It successfully hides Print and Edit commands from the right-click menu. However I still see Related, Trading and Send To commands appear upon right-click in my app. These commands appear disabled (grayed out), but not hidden. I'd like to remove them altogether.
AppHost.Menu.OnDisplayContextMenu(builder =>
{
foreach(BuiltInCommand cmd in System.Enum.GetValues(typeof(BuiltInCommand)))
{
builder.HideBuiltInMenuItem(cmd);
}
});