23 references to Role
PresentationFramework (23)
src\Framework\System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (7)
47
MenuItemRole role = owner.
Role
;
63
MenuItemRole role = owner.
Role
;
135
MenuItemRole role = menuItem.
Role
;
186
MenuItemRole role = owner.
Role
;
204
MenuItemRole role = owner.
Role
;
222
MenuItemRole role = owner.
Role
;
245
MenuItemRole role = owner.
Role
;
src\Framework\System\Windows\Controls\Menu.cs (1)
330
&& newSelection.
Role
== MenuItemRole.TopLevelHeader
src\Framework\System\Windows\Controls\MenuItem.cs (13)
617
MenuItemRole role = menuItem.
Role
;
700
if ((menuItem.IsMouseOver) && (menuItem.
Role
== MenuItemRole.SubmenuHeader))
1522
MenuItemRole role =
Role
;
1550
MenuItemRole role =
Role
;
1672
MenuItemRole role =
Role
;
1728
MenuItemRole role =
Role
;
1933
MenuItemRole role =
Role
;
2086
MenuItemRole type =
Role
;
2249
Debug.Assert(
Role
== MenuItemRole.TopLevelHeader ||
Role
== MenuItemRole.TopLevelItem, "MenuItem was not top-level");
2342
if (
Role
== MenuItemRole.TopLevelItem && !StaysOpenOnClick)
2358
if (
Role
== MenuItemRole.TopLevelHeader)
2603
OpenHierarchy(
Role
);
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (2)
366
MenuItemRole role = menu.CurrentSelection.
Role
;
592
MenuItemRole role = menuItemSource.
Role
;