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