12 writes to Container
PresentationFramework (12)
System\Windows\Controls\ItemsControl.cs (9)
2693
info.
Container
= container;
3604
info.
Container
= container;
3642
info.
Container
= null;
3690
info.
Container
= container;
3785
info.
Container
= null;
3842
Container
= container;
3927
Container
= generator.ContainerFromItem(Item);
3937
Container
= generator.ContainerFromIndex(Index);
3942
Container
= null; // caller explicitly wants null container
System\Windows\Controls\Primitives\Selector.cs (3)
1272
info.
Container
= null;
2053
info.
Container
= ItemInfo.RemovedContainer;
2724
realInfo.
Container
= ItemInfo.RemovedContainer;
44 references to Container
PresentationFramework (44)
System\Windows\Controls\ComboBox.cs (4)
1094
ComboBoxItem cbi = info.
Container
as ComboBoxItem;
1950
ComboBoxItem cbi = (_highlightedInfo != null) ? _highlightedInfo.
Container
as ComboBoxItem : null;
1958
cbi = (_highlightedInfo != null) ? _highlightedInfo.
Container
as ComboBoxItem : null;
1970
get { return (_highlightedInfo == null) ? null : _highlightedInfo.
Container
as ComboBoxItem; }
System\Windows\Controls\DataGrid.cs (2)
3091
DependencyObject currentContainer = currentCell.ItemInfo.
Container
;
7038
DataGridRow row = (DataGridRow)info.
Container
;
System\Windows\Controls\ItemsControl.cs (30)
1819
FrameworkElement element = info.
Container
as FrameworkElement;
3207
UIElement itemContainer = itemsControl._focusedInfo.
Container
as UIElement;
3268
UIElement container = info.
Container
as UIElement;
3598
DependencyObject container = info.
Container
;
3634
DependencyObject container = info.
Container
;
3657
DependencyObject container = info.
Container
;
3668
DependencyObject container = info.
Container
;
3846
internal bool IsResolved { get { return
Container
!= UnresolvedContainer; } }
3847
internal bool IsKey { get { return
Container
== KeyContainer; } }
3848
internal bool IsRemoved { get { return
Container
== RemovedContainer; } }
3852
return new ItemInfo(Item,
Container
, Index);
3857
return (info.
Container
== UnresolvedContainer)
3890
if (this.
Container
== KeyContainer)
3891
return matchUnresolved || that.
Container
!= UnresolvedContainer;
3892
else if (that.
Container
== KeyContainer)
3893
return matchUnresolved || this.
Container
!= UnresolvedContainer;
3896
if (this.
Container
== UnresolvedContainer || that.
Container
== UnresolvedContainer)
3900
(this.
Container
== that.
Container
)
3901
? (this.
Container
== SentinelContainer)
3905
: (this.
Container
== SentinelContainer) || // sentinel matches non-sentinel
3906
(that.
Container
== SentinelContainer) ||
3907
( (this.
Container
== null || that.
Container
== null) && // null matches non-null
3925
if (
Container
== null && Index < 0)
3930
if (Index < 0 &&
Container
!= null)
3932
Index = generator.IndexFromContainer(
Container
);
3935
if (
Container
== null && Index >= 0)
3940
if (
Container
== SentinelContainer && Index >= 0)
System\Windows\Controls\ListBox.cs (5)
286
ListBoxItem listItem = (info != null) ? info.
Container
as ListBoxItem : null;
331
ListBoxItem focusedItemUI = (FocusedInfo != null) ? FocusedInfo.
Container
as ListBoxItem : null;
775
ListBoxItem listItem = info.
Container
as ListBoxItem;
976
ListBoxItem listItem = info.
Container
as ListBoxItem;
1007
ListBoxItem listBoxItem = info.
Container
as ListBoxItem;
System\Windows\Controls\Menu.cs (1)
297
MenuItem newSelection = info.
Container
as MenuItem;
System\Windows\Controls\Primitives\Selector.cs (2)
1786
DependencyObject container = info.
Container
;
1811
DependencyObject container = info.
Container
;