12 writes to Container
PresentationFramework (12)
System\Windows\Controls\ItemsControl.cs (9)
2663
info.
Container
= container;
3574
info.
Container
= container;
3612
info.
Container
= null;
3660
info.
Container
= container;
3755
info.
Container
= null;
3809
Container
= container;
3894
Container
= generator.ContainerFromItem(Item);
3904
Container
= generator.ContainerFromIndex(Index);
3909
Container
= null; // caller explicitly wants null container
System\Windows\Controls\Primitives\Selector.cs (3)
1269
info.
Container
= null;
2051
info.
Container
= ItemInfo.RemovedContainer;
2718
realInfo.
Container
= ItemInfo.RemovedContainer;
44 references to Container
PresentationFramework (44)
System\Windows\Controls\ComboBox.cs (4)
1090
ComboBoxItem cbi = info.
Container
as ComboBoxItem;
1948
ComboBoxItem cbi = (_highlightedInfo != null) ? _highlightedInfo.
Container
as ComboBoxItem : null;
1953
cbi = (_highlightedInfo != null) ? _highlightedInfo.
Container
as ComboBoxItem : null;
1962
get { return (_highlightedInfo == null) ? null : _highlightedInfo.
Container
as ComboBoxItem; }
System\Windows\Controls\DataGrid.cs (2)
3071
DependencyObject currentContainer = currentCell.ItemInfo.
Container
;
6998
DataGridRow row = (DataGridRow)info.
Container
;
System\Windows\Controls\ItemsControl.cs (30)
1792
FrameworkElement element = info.
Container
as FrameworkElement;
3177
UIElement itemContainer = itemsControl._focusedInfo.
Container
as UIElement;
3238
UIElement container = info.
Container
as UIElement;
3568
DependencyObject container = info.
Container
;
3604
DependencyObject container = info.
Container
;
3627
DependencyObject container = info.
Container
;
3638
DependencyObject container = info.
Container
;
3813
internal bool IsResolved { get { return
Container
!= UnresolvedContainer; } }
3814
internal bool IsKey { get { return
Container
== KeyContainer; } }
3815
internal bool IsRemoved { get { return
Container
== RemovedContainer; } }
3819
return new ItemInfo(Item,
Container
, Index);
3824
return (info.
Container
== UnresolvedContainer)
3857
if (this.
Container
== KeyContainer)
3858
return matchUnresolved || that.
Container
!= UnresolvedContainer;
3859
else if (that.
Container
== KeyContainer)
3860
return matchUnresolved || this.
Container
!= UnresolvedContainer;
3863
if (this.
Container
== UnresolvedContainer || that.
Container
== UnresolvedContainer)
3867
(this.
Container
== that.
Container
)
3868
? (this.
Container
== SentinelContainer)
3872
: (this.
Container
== SentinelContainer) || // sentinel matches non-sentinel
3873
(that.
Container
== SentinelContainer) ||
3874
( (this.
Container
== null || that.
Container
== null) && // null matches non-null
3892
if (
Container
== null && Index < 0)
3897
if (Index < 0 &&
Container
!= null)
3899
Index = generator.IndexFromContainer(
Container
);
3902
if (
Container
== null && Index >= 0)
3907
if (
Container
== SentinelContainer && Index >= 0)
System\Windows\Controls\ListBox.cs (5)
286
ListBoxItem listItem = (info != null) ? info.
Container
as ListBoxItem : null;
330
ListBoxItem focusedItemUI = (FocusedInfo != null) ? FocusedInfo.
Container
as ListBoxItem : null;
776
ListBoxItem listItem = info.
Container
as ListBoxItem;
974
ListBoxItem listItem = info.
Container
as ListBoxItem;
1005
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)
1784
DependencyObject container = info.
Container
;
1809
DependencyObject container = info.
Container
;