24 references to TopLevelHeader
PresentationFramework (19)
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (5)
52
if ( (role == MenuItemRole.
TopLevelHeader
|| role == MenuItemRole.SubmenuHeader)
161
if (role == MenuItemRole.
TopLevelHeader
|| role == MenuItemRole.TopLevelItem)
213
if ( (role != MenuItemRole.
TopLevelHeader
&& role != MenuItemRole.SubmenuHeader)
231
if ( (role != MenuItemRole.
TopLevelHeader
&& role != MenuItemRole.SubmenuHeader)
276
else if (role == MenuItemRole.
TopLevelHeader
|| role == MenuItemRole.SubmenuHeader)
System\Windows\Controls\Menu.cs (1)
309
&& newSelection.Role == MenuItemRole.
TopLevelHeader
System\Windows\Controls\MenuItem.cs (12)
623
if (role == MenuItemRole.
TopLevelHeader
)
783
type = MenuItemRole.
TopLevelHeader
;
1494
if (role == MenuItemRole.
TopLevelHeader
|| role == MenuItemRole.SubmenuHeader)
1642
if (((role == MenuItemRole.
TopLevelHeader
|| role == MenuItemRole.TopLevelItem) && IsInMenuMode)
1698
if (((role == MenuItemRole.
TopLevelHeader
|| role == MenuItemRole.TopLevelItem) && OpenOnMouseEnter)
1725
case MenuItemRole.
TopLevelHeader
:
1941
else if (role == MenuItemRole.
TopLevelHeader
)
1982
if ((role != MenuItemRole.
TopLevelHeader
) && (role != MenuItemRole.TopLevelItem))
2049
case MenuItemRole.
TopLevelHeader
:
2200
Debug.Assert(Role == MenuItemRole.
TopLevelHeader
|| Role == MenuItemRole.TopLevelItem, "MenuItem was not top-level");
2298
if (Role == MenuItemRole.
TopLevelHeader
)
2503
if (role == MenuItemRole.
TopLevelHeader
|| role == MenuItemRole.SubmenuHeader)
System\Windows\Controls\Primitives\MenuBase.cs (1)
366
if (role == MenuItemRole.SubmenuHeader || role == MenuItemRole.
TopLevelHeader
)
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
1250
if (menuItem != null && menuItem.Role == MenuItemRole.
TopLevelHeader
&&
System.Windows.Controls.Ribbon (4)
Microsoft\Windows\Automation\Peers\RibbonMenuItemDataAutomationPeer.cs (3)
91
if ((role == MenuItemRole.
TopLevelHeader
|| role == MenuItemRole.SubmenuHeader)
153
if ((role != MenuItemRole.
TopLevelHeader
&& role != MenuItemRole.SubmenuHeader)
184
if ((role != MenuItemRole.
TopLevelHeader
&& role != MenuItemRole.SubmenuHeader)
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
1026
if (Role == MenuItemRole.
TopLevelHeader
&& IsSubmenuOpen)