7 writes to CurrentSelection
PresentationFramework (7)
src\Framework\System\Windows\Controls\ContextMenu.cs (1)
526
CurrentSelection
= null;
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (6)
217
CurrentSelection
= null;
300
CurrentSelection
= null;
362
menu.
CurrentSelection
= newSelectedMenuItem;
384
menu.
CurrentSelection
= null;
742
CurrentSelection
= null;
855
CurrentSelection
= null;
29 references to CurrentSelection
PresentationFramework (29)
src\Framework\System\Windows\Controls\ContextMenu.cs (3)
435
if (
CurrentSelection
== null)
444
if (
CurrentSelection
== null)
524
if (
CurrentSelection
!= null)
src\Framework\System\Windows\Controls\Menu.cs (6)
215
if (
CurrentSelection
!= null)
222
CurrentSelection
.OpenSubmenuWithKeyboard();
229
if (
CurrentSelection
!= null)
236
CurrentSelection
.OpenSubmenuWithKeyboard();
267
(
CurrentSelection
== null || !
CurrentSelection
.IsSubmenuOpen))
src\Framework\System\Windows\Controls\MenuItem.cs (1)
2489
sibling = menuParent.
CurrentSelection
;
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (19)
215
if (!HasCapture && !IsMouseOver &&
CurrentSelection
!= null && !
CurrentSelection
.IsKeyboardFocused && !
CurrentSelection
.IsSubmenuOpen)
298
if (
CurrentSelection
!= null)
352
if ((menu.
CurrentSelection
!= newSelectedMenuItem) && (newSelectedMenuItem.LogicalParent == menu))
356
if (menu.
CurrentSelection
!= null)
358
wasSubmenuOpen = menu.
CurrentSelection
.IsSubmenuOpen;
359
menu.
CurrentSelection
.SetCurrentValueInternal(MenuItem.IsSubmenuOpenProperty, BooleanBoxes.FalseBox);
363
if (menu.
CurrentSelection
!= null && wasSubmenuOpen)
366
MenuItemRole role = menu.
CurrentSelection
.Role;
370
if (menu.
CurrentSelection
.IsSubmenuOpen != wasSubmenuOpen)
372
menu.
CurrentSelection
.SetCurrentValueInternal(MenuItem.IsSubmenuOpenProperty, BooleanBoxes.Box(wasSubmenuOpen));
382
if (menu.
CurrentSelection
== newSelectedMenuItem)
457
if (
CurrentSelection
!= null &&
CurrentSelection
.IsSubmenuOpen)
459
CurrentSelection
.SetCurrentValueInternal(MenuItem.IsSubmenuOpenProperty, BooleanBoxes.FalseBox);
851
if (
CurrentSelection
!= null)
853
wasSubmenuOpen =
CurrentSelection
.IsSubmenuOpen;
854
CurrentSelection
.IsSubmenuOpen = false;