7 writes to CurrentSelection
PresentationFramework (7)
System\Windows\Controls\ContextMenu.cs (1)
514CurrentSelection = null;
System\Windows\Controls\Primitives\MenuBase.cs (6)
205CurrentSelection = null; 288CurrentSelection = null; 350menu.CurrentSelection = newSelectedMenuItem; 372menu.CurrentSelection = null; 721CurrentSelection = null; 834CurrentSelection = null;
29 references to CurrentSelection
PresentationFramework (29)
System\Windows\Controls\ContextMenu.cs (3)
422if (CurrentSelection == null) 431if (CurrentSelection == null) 512if (CurrentSelection != null)
System\Windows\Controls\Menu.cs (6)
188if (CurrentSelection != null) 195CurrentSelection.OpenSubmenuWithKeyboard(); 202if (CurrentSelection != null) 209CurrentSelection.OpenSubmenuWithKeyboard(); 235(CurrentSelection == null || !CurrentSelection.IsSubmenuOpen))
System\Windows\Controls\MenuItem.cs (1)
2413sibling = menuParent.CurrentSelection;
System\Windows\Controls\Primitives\MenuBase.cs (19)
203if (!HasCapture && !IsMouseOver && CurrentSelection != null && !CurrentSelection.IsKeyboardFocused && !CurrentSelection.IsSubmenuOpen) 286if (CurrentSelection != null) 340if ((menu.CurrentSelection != newSelectedMenuItem) && (newSelectedMenuItem.LogicalParent == menu)) 344if (menu.CurrentSelection != null) 346wasSubmenuOpen = menu.CurrentSelection.IsSubmenuOpen; 347menu.CurrentSelection.SetCurrentValueInternal(MenuItem.IsSubmenuOpenProperty, BooleanBoxes.FalseBox); 351if (menu.CurrentSelection != null && wasSubmenuOpen) 354MenuItemRole role = menu.CurrentSelection.Role; 358if (menu.CurrentSelection.IsSubmenuOpen != wasSubmenuOpen) 360menu.CurrentSelection.SetCurrentValueInternal(MenuItem.IsSubmenuOpenProperty, BooleanBoxes.Box(wasSubmenuOpen)); 370if (menu.CurrentSelection == newSelectedMenuItem) 443if (CurrentSelection != null && CurrentSelection.IsSubmenuOpen) 445CurrentSelection.SetCurrentValueInternal(MenuItem.IsSubmenuOpenProperty, BooleanBoxes.FalseBox); 830if (CurrentSelection != null) 832wasSubmenuOpen = CurrentSelection.IsSubmenuOpen; 833CurrentSelection.IsSubmenuOpen = false;