7 writes to CurrentSelection
PresentationFramework (7)
System\Windows\Controls\ContextMenu.cs (1)
514
CurrentSelection
= null;
System\Windows\Controls\Primitives\MenuBase.cs (6)
206
CurrentSelection
= null;
289
CurrentSelection
= null;
351
menu.
CurrentSelection
= newSelectedMenuItem;
373
menu.
CurrentSelection
= null;
722
CurrentSelection
= null;
835
CurrentSelection
= null;
29 references to CurrentSelection
PresentationFramework (29)
System\Windows\Controls\ContextMenu.cs (3)
423
if (
CurrentSelection
== null)
432
if (
CurrentSelection
== null)
512
if (
CurrentSelection
!= null)
System\Windows\Controls\Menu.cs (6)
189
if (
CurrentSelection
!= null)
196
CurrentSelection
.OpenSubmenuWithKeyboard();
203
if (
CurrentSelection
!= null)
210
CurrentSelection
.OpenSubmenuWithKeyboard();
236
(
CurrentSelection
== null || !
CurrentSelection
.IsSubmenuOpen))
System\Windows\Controls\MenuItem.cs (1)
2419
sibling = menuParent.
CurrentSelection
;
System\Windows\Controls\Primitives\MenuBase.cs (19)
204
if (!HasCapture && !IsMouseOver &&
CurrentSelection
!= null && !
CurrentSelection
.IsKeyboardFocused && !
CurrentSelection
.IsSubmenuOpen)
287
if (
CurrentSelection
!= null)
341
if ((menu.
CurrentSelection
!= newSelectedMenuItem) && (newSelectedMenuItem.LogicalParent == menu))
345
if (menu.
CurrentSelection
!= null)
347
wasSubmenuOpen = menu.
CurrentSelection
.IsSubmenuOpen;
348
menu.
CurrentSelection
.SetCurrentValueInternal(MenuItem.IsSubmenuOpenProperty, BooleanBoxes.FalseBox);
352
if (menu.
CurrentSelection
!= null && wasSubmenuOpen)
355
MenuItemRole role = menu.
CurrentSelection
.Role;
359
if (menu.
CurrentSelection
.IsSubmenuOpen != wasSubmenuOpen)
361
menu.
CurrentSelection
.SetCurrentValueInternal(MenuItem.IsSubmenuOpenProperty, BooleanBoxes.Box(wasSubmenuOpen));
371
if (menu.
CurrentSelection
== newSelectedMenuItem)
444
if (
CurrentSelection
!= null &&
CurrentSelection
.IsSubmenuOpen)
446
CurrentSelection
.SetCurrentValueInternal(MenuItem.IsSubmenuOpenProperty, BooleanBoxes.FalseBox);
831
if (
CurrentSelection
!= null)
833
wasSubmenuOpen =
CurrentSelection
.IsSubmenuOpen;
834
CurrentSelection
.IsSubmenuOpen = false;