22 references to SubmenuHeader
PresentationFramework (19)
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (4)
52
if ( (role == MenuItemRole.TopLevelHeader || role == MenuItemRole.
SubmenuHeader
)
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\MenuItem.cs (14)
705
if ((menuItem.IsMouseOver) && (menuItem.Role == MenuItemRole.
SubmenuHeader
))
787
type = MenuItemRole.
SubmenuHeader
;
1494
if (role == MenuItemRole.TopLevelHeader || role == MenuItemRole.
SubmenuHeader
)
1643
|| (role == MenuItemRole.
SubmenuHeader
|| role == MenuItemRole.SubmenuItem))
1699
|| (role == MenuItemRole.
SubmenuHeader
|| role == MenuItemRole.SubmenuItem))
1736
case MenuItemRole.
SubmenuHeader
:
1791
if (role == MenuItemRole.
SubmenuHeader
|| role == MenuItemRole.SubmenuItem)
1910
if (role == MenuItemRole.
SubmenuHeader
&& IsSubmenuOpen && CurrentSelection == null)
1926
if ((role == MenuItemRole.
SubmenuHeader
) && !IsSubmenuOpen)
1947
else if (role == MenuItemRole.
SubmenuHeader
&& !IsSubmenuOpen)
1959
if (role == MenuItemRole.
SubmenuHeader
&& IsSubmenuOpen && CurrentSelection == null)
1969
if (role == MenuItemRole.
SubmenuHeader
&& IsSubmenuOpen && CurrentSelection == null)
2050
case MenuItemRole.
SubmenuHeader
:
2503
if (role == MenuItemRole.TopLevelHeader || role == MenuItemRole.
SubmenuHeader
)
System\Windows\Controls\Primitives\MenuBase.cs (1)
366
if (role == MenuItemRole.
SubmenuHeader
|| role == MenuItemRole.TopLevelHeader)
System.Windows.Controls.Ribbon (3)
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
)