31 references to Role
PresentationFramework (23)
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (7)
38MenuItemRole role = owner.Role; 54MenuItemRole role = owner.Role; 147MenuItemRole role = menuItem.Role; 198MenuItemRole role = owner.Role; 216MenuItemRole role = owner.Role; 234MenuItemRole role = owner.Role; 257MenuItemRole role = owner.Role;
System\Windows\Controls\Menu.cs (1)
299&& newSelection.Role == MenuItemRole.TopLevelHeader
System\Windows\Controls\MenuItem.cs (13)
612MenuItemRole role = menuItem.Role; 695if ((menuItem.IsMouseOver) && (menuItem.Role == MenuItemRole.SubmenuHeader)) 1482MenuItemRole role = Role; 1504MenuItemRole role = Role; 1626MenuItemRole role = Role; 1682MenuItemRole role = Role; 1881MenuItemRole role = Role; 2028MenuItemRole type = Role; 2190Debug.Assert(Role == MenuItemRole.TopLevelHeader || Role == MenuItemRole.TopLevelItem, "MenuItem was not top-level"); 2272if (Role == MenuItemRole.TopLevelItem && !StaysOpenOnClick) 2288if (Role == MenuItemRole.TopLevelHeader) 2536OpenHierarchy(Role);
System\Windows\Controls\Primitives\MenuBase.cs (2)
355MenuItemRole role = menu.CurrentSelection.Role; 579MenuItemRole role = menuItemSource.Role;
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
1243if (menuItem != null && menuItem.Role == MenuItemRole.TopLevelHeader &&
System.Windows.Controls.Ribbon (7)
Microsoft\Windows\Automation\Peers\RibbonMenuItemDataAutomationPeer.cs (4)
84MenuItemRole role = menuItemOwner.Role; 147MenuItemRole role = menuItemOwner.Role; 178MenuItemRole role = menuItemOwner.Role; 210MenuItemRole role = menuItemOwner.Role;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (3)
1023if (Role == MenuItemRole.TopLevelHeader && IsSubmenuOpen) 1655if (Role == MenuItemRole.SubmenuItem || Role == MenuItemRole.TopLevelItem)