4 writes to CurrentSelection
PresentationFramework (4)
System\Windows\Controls\MenuItem.cs (4)
616
menuItem.
CurrentSelection
= null;
692
menuItem.
CurrentSelection
= null;
1067
menuItem.
CurrentSelection
= source;
1077
menuItem.
CurrentSelection
= null;
14 references to CurrentSelection
PresentationFramework (14)
System\Windows\Controls\MenuItem.cs (14)
650
if (menuItem.
CurrentSelection
!= null)
655
if (menuItem.
CurrentSelection
.IsKeyboardFocusWithin)
660
if (menuItem.
CurrentSelection
.IsSubmenuOpen)
662
menuItem.
CurrentSelection
.SetCurrentValueInternal(IsSubmenuOpenProperty, BooleanBoxes.FalseBox);
1053
if (menuItem.
CurrentSelection
== source)
1060
if (menuItem.
CurrentSelection
!= source && source.LogicalParent == menuItem)
1062
if (menuItem.
CurrentSelection
!= null && menuItem.
CurrentSelection
.IsSubmenuOpen)
1064
menuItem.
CurrentSelection
.SetCurrentValueInternal(IsSubmenuOpenProperty, BooleanBoxes.FalseBox);
1075
if (menuItem.
CurrentSelection
== source)
1892
if (role == MenuItemRole.SubmenuHeader && IsSubmenuOpen &&
CurrentSelection
== null)
1941
if (role == MenuItemRole.SubmenuHeader && IsSubmenuOpen &&
CurrentSelection
== null)
1951
if (role == MenuItemRole.SubmenuHeader && IsSubmenuOpen &&
CurrentSelection
== null)
2405
sibling = menuItemParent.
CurrentSelection
;