7 writes to CurrentSelection
PresentationFramework (7)
System\Windows\Controls\ContextMenu.cs (1)
522
CurrentSelection
= null;
System\Windows\Controls\Primitives\MenuBase.cs (6)
215
CurrentSelection
= null;
298
CurrentSelection
= null;
360
menu.
CurrentSelection
= newSelectedMenuItem;
382
menu.
CurrentSelection
= null;
731
CurrentSelection
= null;
844
CurrentSelection
= null;
29 references to CurrentSelection
PresentationFramework (29)
System\Windows\Controls\ContextMenu.cs (3)
431
if (
CurrentSelection
== null)
440
if (
CurrentSelection
== null)
520
if (
CurrentSelection
!= null)
System\Windows\Controls\Menu.cs (6)
199
if (
CurrentSelection
!= null)
206
CurrentSelection
.OpenSubmenuWithKeyboard();
213
if (
CurrentSelection
!= null)
220
CurrentSelection
.OpenSubmenuWithKeyboard();
246
(
CurrentSelection
== null || !
CurrentSelection
.IsSubmenuOpen))
System\Windows\Controls\MenuItem.cs (1)
2429
sibling = menuParent.
CurrentSelection
;
System\Windows\Controls\Primitives\MenuBase.cs (19)
213
if (!HasCapture && !IsMouseOver &&
CurrentSelection
!= null && !
CurrentSelection
.IsKeyboardFocused && !
CurrentSelection
.IsSubmenuOpen)
296
if (
CurrentSelection
!= null)
350
if ((menu.
CurrentSelection
!= newSelectedMenuItem) && (newSelectedMenuItem.LogicalParent == menu))
354
if (menu.
CurrentSelection
!= null)
356
wasSubmenuOpen = menu.
CurrentSelection
.IsSubmenuOpen;
357
menu.
CurrentSelection
.SetCurrentValueInternal(MenuItem.IsSubmenuOpenProperty, BooleanBoxes.FalseBox);
361
if (menu.
CurrentSelection
!= null && wasSubmenuOpen)
364
MenuItemRole role = menu.
CurrentSelection
.Role;
368
if (menu.
CurrentSelection
.IsSubmenuOpen != wasSubmenuOpen)
370
menu.
CurrentSelection
.SetCurrentValueInternal(MenuItem.IsSubmenuOpenProperty, BooleanBoxes.Box(wasSubmenuOpen));
380
if (menu.
CurrentSelection
== newSelectedMenuItem)
453
if (
CurrentSelection
!= null &&
CurrentSelection
.IsSubmenuOpen)
455
CurrentSelection
.SetCurrentValueInternal(MenuItem.IsSubmenuOpenProperty, BooleanBoxes.FalseBox);
840
if (
CurrentSelection
!= null)
842
wasSubmenuOpen =
CurrentSelection
.IsSubmenuOpen;
843
CurrentSelection
.IsSubmenuOpen = false;