12 writes to Container
PresentationFramework (12)
System\Windows\Controls\ItemsControl.cs (9)
2702
info.
Container
= container;
3613
info.
Container
= container;
3651
info.
Container
= null;
3699
info.
Container
= container;
3794
info.
Container
= null;
3851
Container
= container;
3936
Container
= generator.ContainerFromItem(Item);
3946
Container
= generator.ContainerFromIndex(Index);
3951
Container
= null; // caller explicitly wants null container
System\Windows\Controls\Primitives\Selector.cs (3)
1281
info.
Container
= null;
2062
info.
Container
= ItemInfo.RemovedContainer;
2733
realInfo.
Container
= ItemInfo.RemovedContainer;
44 references to Container
PresentationFramework (44)
System\Windows\Controls\ComboBox.cs (4)
1104
ComboBoxItem cbi = info.
Container
as ComboBoxItem;
1960
ComboBoxItem cbi = (_highlightedInfo != null) ? _highlightedInfo.
Container
as ComboBoxItem : null;
1968
cbi = (_highlightedInfo != null) ? _highlightedInfo.
Container
as ComboBoxItem : null;
1980
get { return (_highlightedInfo == null) ? null : _highlightedInfo.
Container
as ComboBoxItem; }
System\Windows\Controls\DataGrid.cs (2)
3094
DependencyObject currentContainer = currentCell.ItemInfo.
Container
;
7041
DataGridRow row = (DataGridRow)info.
Container
;
System\Windows\Controls\ItemsControl.cs (30)
1828
FrameworkElement element = info.
Container
as FrameworkElement;
3216
UIElement itemContainer = itemsControl._focusedInfo.
Container
as UIElement;
3277
UIElement container = info.
Container
as UIElement;
3607
DependencyObject container = info.
Container
;
3643
DependencyObject container = info.
Container
;
3666
DependencyObject container = info.
Container
;
3677
DependencyObject container = info.
Container
;
3855
internal bool IsResolved { get { return
Container
!= UnresolvedContainer; } }
3856
internal bool IsKey { get { return
Container
== KeyContainer; } }
3857
internal bool IsRemoved { get { return
Container
== RemovedContainer; } }
3861
return new ItemInfo(Item,
Container
, Index);
3866
return (info.
Container
== UnresolvedContainer)
3899
if (this.
Container
== KeyContainer)
3900
return matchUnresolved || that.
Container
!= UnresolvedContainer;
3901
else if (that.
Container
== KeyContainer)
3902
return matchUnresolved || this.
Container
!= UnresolvedContainer;
3905
if (this.
Container
== UnresolvedContainer || that.
Container
== UnresolvedContainer)
3909
(this.
Container
== that.
Container
)
3910
? (this.
Container
== SentinelContainer)
3914
: (this.
Container
== SentinelContainer) || // sentinel matches non-sentinel
3915
(that.
Container
== SentinelContainer) ||
3916
( (this.
Container
== null || that.
Container
== null) && // null matches non-null
3934
if (
Container
== null && Index < 0)
3939
if (Index < 0 &&
Container
!= null)
3941
Index = generator.IndexFromContainer(
Container
);
3944
if (
Container
== null && Index >= 0)
3949
if (
Container
== SentinelContainer && Index >= 0)
System\Windows\Controls\ListBox.cs (5)
292
ListBoxItem listItem = (info != null) ? info.
Container
as ListBoxItem : null;
337
ListBoxItem focusedItemUI = (FocusedInfo != null) ? FocusedInfo.
Container
as ListBoxItem : null;
781
ListBoxItem listItem = info.
Container
as ListBoxItem;
982
ListBoxItem listItem = info.
Container
as ListBoxItem;
1013
ListBoxItem listBoxItem = info.
Container
as ListBoxItem;
System\Windows\Controls\Menu.cs (1)
307
MenuItem newSelection = info.
Container
as MenuItem;
System\Windows\Controls\Primitives\Selector.cs (2)
1795
DependencyObject container = info.
Container
;
1820
DependencyObject container = info.
Container
;