31 references to Role
PresentationFramework (23)
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (7)
51
MenuItemRole role = owner.
Role
;
67
MenuItemRole role = owner.
Role
;
160
MenuItemRole role = menuItem.
Role
;
211
MenuItemRole role = owner.
Role
;
229
MenuItemRole role = owner.
Role
;
247
MenuItemRole role = owner.
Role
;
270
MenuItemRole role = owner.
Role
;
System\Windows\Controls\Menu.cs (1)
309
&& newSelection.
Role
== MenuItemRole.TopLevelHeader
System\Windows\Controls\MenuItem.cs (13)
622
MenuItemRole role = menuItem.
Role
;
705
if ((menuItem.IsMouseOver) && (menuItem.
Role
== MenuItemRole.SubmenuHeader))
1492
MenuItemRole role =
Role
;
1514
MenuItemRole role =
Role
;
1636
MenuItemRole role =
Role
;
1692
MenuItemRole role =
Role
;
1891
MenuItemRole role =
Role
;
2038
MenuItemRole type =
Role
;
2200
Debug.Assert(
Role
== MenuItemRole.TopLevelHeader ||
Role
== MenuItemRole.TopLevelItem, "MenuItem was not top-level");
2282
if (
Role
== MenuItemRole.TopLevelItem && !StaysOpenOnClick)
2298
if (
Role
== MenuItemRole.TopLevelHeader)
2546
OpenHierarchy(
Role
);
System\Windows\Controls\Primitives\MenuBase.cs (2)
364
MenuItemRole role = menu.CurrentSelection.
Role
;
588
MenuItemRole role = menuItemSource.
Role
;
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
1250
if (menuItem != null && menuItem.
Role
== MenuItemRole.TopLevelHeader &&
System.Windows.Controls.Ribbon (7)
Microsoft\Windows\Automation\Peers\RibbonMenuItemDataAutomationPeer.cs (4)
88
MenuItemRole role = menuItemOwner.
Role
;
151
MenuItemRole role = menuItemOwner.
Role
;
182
MenuItemRole role = menuItemOwner.
Role
;
214
MenuItemRole role = menuItemOwner.
Role
;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (3)
1026
if (
Role
== MenuItemRole.TopLevelHeader && IsSubmenuOpen)
1658
if (
Role
== MenuItemRole.SubmenuItem ||
Role
== MenuItemRole.TopLevelItem)