2 writes to _selectedContainer
PresentationFramework (2)
src\Framework\System\Windows\Controls\TreeView.cs (2)
219
_selectedContainer
= container;
231
_selectedContainer
= null;
36 references to _selectedContainer
PresentationFramework (36)
src\Framework\System\Windows\Controls\TreeView.cs (36)
201
TreeViewItem oldContainer =
_selectedContainer
; // Saved for the automation event
209
if (container !=
_selectedContainer
)
214
if (
_selectedContainer
!= null)
216
_selectedContainer
.IsSelected = false;
217
_selectedContainer
.UpdateContainsSelection(false);
220
_selectedContainer
.UpdateContainsSelection(true);
228
if (container ==
_selectedContainer
)
230
_selectedContainer
.UpdateContainsSelection(false);
252
if (
_selectedContainer
!= null
255
TreeViewItemAutomationPeer peer = UIElementAutomationPeer.CreatePeerForElement(
_selectedContainer
) as TreeViewItemAutomationPeer;
345
if ((
_selectedContainer
!= null) && (
_selectedContainer
!= collapsed))
348
TreeViewItem current =
_selectedContainer
;
354
TreeViewItem oldContainer =
_selectedContainer
;
361
_selectedContainer
.Focus();
378
if (
_selectedContainer
!= null)
380
if (!
_selectedContainer
.IsKeyboardFocused)
381
_selectedContainer
.Focus();
436
ChangeSelection(selectedItem,
_selectedContainer
, false);
458
container =
_selectedContainer
;
484
return (
_selectedContainer
!= null) && (
_selectedContainer
.ParentTreeView == this);
492
return
_selectedContainer
;
543
if ((
_selectedContainer
== null) && FocusFirstItem())
565
if (
_selectedContainer
== null)
590
if (ExpandSubtree(
_selectedContainer
))
708
ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(
_selectedContainer
);
710
? parentItemsControl.ItemInfoFromContainer(
_selectedContainer
)
713
FrameworkElement startingContainer =
_selectedContainer
.HeaderElement;
716
startingContainer =
_selectedContainer
;
782
if (isKeyboardFocusWithin && IsKeyboardFocused && (
_selectedContainer
!= null) && !
_selectedContainer
.IsKeyboardFocusWithin)
784
_selectedContainer
.Focus();
798
if (IsKeyboardFocusWithin && IsKeyboardFocused && (
_selectedContainer
!= null) && !
_selectedContainer
.IsKeyboardFocusWithin)
800
_selectedContainer
.Focus();