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