2 writes to _selectedContainer
PresentationFramework (2)
System\Windows\Controls\TreeView.cs (2)
218
_selectedContainer
= container;
230
_selectedContainer
= null;
36 references to _selectedContainer
PresentationFramework (36)
System\Windows\Controls\TreeView.cs (36)
200
TreeViewItem oldContainer =
_selectedContainer
; // Saved for the automation event
208
if (container !=
_selectedContainer
)
213
if (
_selectedContainer
!= null)
215
_selectedContainer
.IsSelected = false;
216
_selectedContainer
.UpdateContainsSelection(false);
219
_selectedContainer
.UpdateContainsSelection(true);
227
if (container ==
_selectedContainer
)
229
_selectedContainer
.UpdateContainsSelection(false);
251
if (
_selectedContainer
!= null
254
TreeViewItemAutomationPeer peer = UIElementAutomationPeer.CreatePeerForElement(
_selectedContainer
) as TreeViewItemAutomationPeer;
344
if ((
_selectedContainer
!= null) && (
_selectedContainer
!= collapsed))
347
TreeViewItem current =
_selectedContainer
;
353
TreeViewItem oldContainer =
_selectedContainer
;
360
_selectedContainer
.Focus();
377
if (
_selectedContainer
!= null)
379
if (!
_selectedContainer
.IsKeyboardFocused)
380
_selectedContainer
.Focus();
435
ChangeSelection(selectedItem,
_selectedContainer
, false);
457
container =
_selectedContainer
;
483
return (
_selectedContainer
!= null) && (
_selectedContainer
.ParentTreeView == this);
491
return
_selectedContainer
;
542
if ((
_selectedContainer
== null) && FocusFirstItem())
564
if (
_selectedContainer
== null)
589
if (ExpandSubtree(
_selectedContainer
))
706
ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(
_selectedContainer
);
708
? parentItemsControl.ItemInfoFromContainer(
_selectedContainer
)
711
FrameworkElement startingContainer =
_selectedContainer
.HeaderElement;
714
startingContainer =
_selectedContainer
;
780
if (isKeyboardFocusWithin && IsKeyboardFocused && (
_selectedContainer
!= null) && !
_selectedContainer
.IsKeyboardFocusWithin)
782
_selectedContainer
.Focus();
796
if (IsKeyboardFocusWithin && IsKeyboardFocused && (
_selectedContainer
!= null) && !
_selectedContainer
.IsKeyboardFocusWithin)
798
_selectedContainer
.Focus();