2 writes to _selectedContainer
PresentationFramework (2)
System\Windows\Controls\TreeView.cs (2)
213_selectedContainer = container; 225_selectedContainer = null;
36 references to _selectedContainer
PresentationFramework (36)
System\Windows\Controls\TreeView.cs (36)
195TreeViewItem oldContainer = _selectedContainer; // Saved for the automation event 203if (container != _selectedContainer) 208if (_selectedContainer != null) 210_selectedContainer.IsSelected = false; 211_selectedContainer.UpdateContainsSelection(false); 214_selectedContainer.UpdateContainsSelection(true); 222if (container == _selectedContainer) 224_selectedContainer.UpdateContainsSelection(false); 246if ( _selectedContainer != null 249TreeViewItemAutomationPeer peer = UIElementAutomationPeer.CreatePeerForElement(_selectedContainer) as TreeViewItemAutomationPeer; 339if ((_selectedContainer != null) && (_selectedContainer != collapsed)) 342TreeViewItem current = _selectedContainer; 348TreeViewItem oldContainer = _selectedContainer; 355_selectedContainer.Focus(); 372if (_selectedContainer != null) 374if (!_selectedContainer.IsKeyboardFocused) 375_selectedContainer.Focus(); 430ChangeSelection(selectedItem, _selectedContainer, false); 452container = _selectedContainer; 478return (_selectedContainer != null) && (_selectedContainer.ParentTreeView == this); 486return _selectedContainer; 537if ((_selectedContainer == null) && FocusFirstItem()) 559if (_selectedContainer == null) 584if (ExpandSubtree(_selectedContainer)) 701ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(_selectedContainer); 703? parentItemsControl.ItemInfoFromContainer(_selectedContainer) 706FrameworkElement startingContainer = _selectedContainer.HeaderElement; 709startingContainer = _selectedContainer; 775if (isKeyboardFocusWithin && IsKeyboardFocused && (_selectedContainer != null) && !_selectedContainer.IsKeyboardFocusWithin) 777_selectedContainer.Focus(); 791if (IsKeyboardFocusWithin && IsKeyboardFocused && (_selectedContainer != null) && !_selectedContainer.IsKeyboardFocusWithin) 793_selectedContainer.Focus();