12 writes to Container
PresentationFramework (12)
System\Windows\Controls\ItemsControl.cs (9)
2662
info.
Container
= container;
3573
info.
Container
= container;
3611
info.
Container
= null;
3659
info.
Container
= container;
3754
info.
Container
= null;
3808
Container
= container;
3893
Container
= generator.ContainerFromItem(Item);
3903
Container
= generator.ContainerFromIndex(Index);
3908
Container
= null; // caller explicitly wants null container
System\Windows\Controls\Primitives\Selector.cs (3)
1268
info.
Container
= null;
2050
info.
Container
= ItemInfo.RemovedContainer;
2717
realInfo.
Container
= ItemInfo.RemovedContainer;
44 references to Container
PresentationFramework (44)
System\Windows\Controls\ComboBox.cs (4)
1089
ComboBoxItem cbi = info.
Container
as ComboBoxItem;
1947
ComboBoxItem cbi = (_highlightedInfo != null) ? _highlightedInfo.
Container
as ComboBoxItem : null;
1952
cbi = (_highlightedInfo != null) ? _highlightedInfo.
Container
as ComboBoxItem : null;
1961
get { return (_highlightedInfo == null) ? null : _highlightedInfo.
Container
as ComboBoxItem; }
System\Windows\Controls\DataGrid.cs (2)
3070
DependencyObject currentContainer = currentCell.ItemInfo.
Container
;
6997
DataGridRow row = (DataGridRow)info.
Container
;
System\Windows\Controls\ItemsControl.cs (30)
1791
FrameworkElement element = info.
Container
as FrameworkElement;
3176
UIElement itemContainer = itemsControl._focusedInfo.
Container
as UIElement;
3237
UIElement container = info.
Container
as UIElement;
3567
DependencyObject container = info.
Container
;
3603
DependencyObject container = info.
Container
;
3626
DependencyObject container = info.
Container
;
3637
DependencyObject container = info.
Container
;
3812
internal bool IsResolved { get { return
Container
!= UnresolvedContainer; } }
3813
internal bool IsKey { get { return
Container
== KeyContainer; } }
3814
internal bool IsRemoved { get { return
Container
== RemovedContainer; } }
3818
return new ItemInfo(Item,
Container
, Index);
3823
return (info.
Container
== UnresolvedContainer)
3856
if (this.
Container
== KeyContainer)
3857
return matchUnresolved || that.
Container
!= UnresolvedContainer;
3858
else if (that.
Container
== KeyContainer)
3859
return matchUnresolved || this.
Container
!= UnresolvedContainer;
3862
if (this.
Container
== UnresolvedContainer || that.
Container
== UnresolvedContainer)
3866
(this.
Container
== that.
Container
)
3867
? (this.
Container
== SentinelContainer)
3871
: (this.
Container
== SentinelContainer) || // sentinel matches non-sentinel
3872
(that.
Container
== SentinelContainer) ||
3873
( (this.
Container
== null || that.
Container
== null) && // null matches non-null
3891
if (
Container
== null && Index < 0)
3896
if (Index < 0 &&
Container
!= null)
3898
Index = generator.IndexFromContainer(
Container
);
3901
if (
Container
== null && Index >= 0)
3906
if (
Container
== SentinelContainer && Index >= 0)
System\Windows\Controls\ListBox.cs (5)
285
ListBoxItem listItem = (info != null) ? info.
Container
as ListBoxItem : null;
329
ListBoxItem focusedItemUI = (FocusedInfo != null) ? FocusedInfo.
Container
as ListBoxItem : null;
775
ListBoxItem listItem = info.
Container
as ListBoxItem;
973
ListBoxItem listItem = info.
Container
as ListBoxItem;
1004
ListBoxItem listBoxItem = info.
Container
as ListBoxItem;
System\Windows\Controls\Menu.cs (1)
296
MenuItem newSelection = info.
Container
as MenuItem;
System\Windows\Controls\Primitives\Selector.cs (2)
1783
DependencyObject container = info.
Container
;
1808
DependencyObject container = info.
Container
;