MenuItem functionality added to Menu object

Nov 14, 2008 at 11:41 AM
Hi,

Would it be possible to add Menu Item functionality to the Menu object. It would be useful to be able to determine what menu options are in a menu and their relative state (enabled / dissabled).

e.g: something that works similar to as follows:

Menu myMenu = MainWindow.Get<Menu>(SearcCriteria.ByAutoamtionId("contextMenu"));

myMenu.Items[3].Name;
myMenu.Items[2].isEnabled

etc

Many thanks
Coordinator
Nov 19, 2008 at 6:16 PM
Have you tried using ChildMenus property on Menu?