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; 341if ((_selectedContainer != null) && (_selectedContainer != collapsed)) 344TreeViewItem current = _selectedContainer; 350TreeViewItem oldContainer = _selectedContainer; 357_selectedContainer.Focus(); 374if (_selectedContainer != null) 376if (!_selectedContainer.IsKeyboardFocused) 377_selectedContainer.Focus(); 432ChangeSelection(selectedItem, _selectedContainer, false); 454container = _selectedContainer; 480return (_selectedContainer != null) && (_selectedContainer.ParentTreeView == this); 488return _selectedContainer; 539if ((_selectedContainer == null) && FocusFirstItem()) 561if (_selectedContainer == null) 586if (ExpandSubtree(_selectedContainer)) 703ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(_selectedContainer); 705? parentItemsControl.ItemInfoFromContainer(_selectedContainer) 708FrameworkElement startingContainer = _selectedContainer.HeaderElement; 711startingContainer = _selectedContainer; 777if (isKeyboardFocusWithin && IsKeyboardFocused && (_selectedContainer != null) && !_selectedContainer.IsKeyboardFocusWithin) 779_selectedContainer.Focus(); 793if (IsKeyboardFocusWithin && IsKeyboardFocused && (_selectedContainer != null) && !_selectedContainer.IsKeyboardFocusWithin) 795_selectedContainer.Focus();