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)
195
TreeViewItem oldContainer =
_selectedContainer
; // Saved for the automation event
203
if (container !=
_selectedContainer
)
208
if (
_selectedContainer
!= null)
210
_selectedContainer
.IsSelected = false;
211
_selectedContainer
.UpdateContainsSelection(false);
214
_selectedContainer
.UpdateContainsSelection(true);
222
if (container ==
_selectedContainer
)
224
_selectedContainer
.UpdateContainsSelection(false);
246
if (
_selectedContainer
!= null
249
TreeViewItemAutomationPeer peer = UIElementAutomationPeer.CreatePeerForElement(
_selectedContainer
) as TreeViewItemAutomationPeer;
339
if ((
_selectedContainer
!= null) && (
_selectedContainer
!= collapsed))
342
TreeViewItem current =
_selectedContainer
;
348
TreeViewItem oldContainer =
_selectedContainer
;
355
_selectedContainer
.Focus();
372
if (
_selectedContainer
!= null)
374
if (!
_selectedContainer
.IsKeyboardFocused)
375
_selectedContainer
.Focus();
430
ChangeSelection(selectedItem,
_selectedContainer
, false);
452
container =
_selectedContainer
;
478
return (
_selectedContainer
!= null) && (
_selectedContainer
.ParentTreeView == this);
486
return
_selectedContainer
;
537
if ((
_selectedContainer
== null) && FocusFirstItem())
559
if (
_selectedContainer
== null)
584
if (ExpandSubtree(
_selectedContainer
))
701
ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(
_selectedContainer
);
703
? parentItemsControl.ItemInfoFromContainer(
_selectedContainer
)
706
FrameworkElement startingContainer =
_selectedContainer
.HeaderElement;
709
startingContainer =
_selectedContainer
;
775
if (isKeyboardFocusWithin && IsKeyboardFocused && (
_selectedContainer
!= null) && !
_selectedContainer
.IsKeyboardFocusWithin)
777
_selectedContainer
.Focus();
791
if (IsKeyboardFocusWithin && IsKeyboardFocused && (
_selectedContainer
!= null) && !
_selectedContainer
.IsKeyboardFocusWithin)
793
_selectedContainer
.Focus();