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