A menu item can be enabled or disabled from the IMenuManager using the following code:
// The physical path of the menu item, indicating its path hierarchy. string[] menuPath = new[] { "_File", "E_xit" }; // The enabled state of the menu item. bool isEnabled = true; menuManager.SetIsEnabled(isEnabled, menuPath);
Comments
0 comments
Please sign in to leave a comment.