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