12 writes to Container
PresentationFramework (12)
src\Framework\System\Windows\Controls\ItemsControl.cs (9)
2705
info.
Container
= container;
3544
info.
Container
= container;
3582
info.
Container
= null;
3631
info.
Container
= container;
3726
info.
Container
= null;
3783
Container
= container;
3868
Container
= generator.ContainerFromItem(Item);
3878
Container
= generator.ContainerFromIndex(Index);
3883
Container
= null; // caller explicitly wants null container
src\Framework\System\Windows\Controls\Primitives\Selector.cs (3)
1299
info.
Container
= null;
2107
info.
Container
= ItemInfo.RemovedContainer;
2780
realInfo.
Container
= ItemInfo.RemovedContainer;
44 references to Container
PresentationFramework (44)
src\Framework\System\Windows\Controls\ComboBox.cs (4)
1106
ComboBoxItem cbi = info.
Container
as ComboBoxItem;
1968
ComboBoxItem cbi = (_highlightedInfo != null) ? _highlightedInfo.
Container
as ComboBoxItem : null;
1976
cbi = (_highlightedInfo != null) ? _highlightedInfo.
Container
as ComboBoxItem : null;
1988
get { return (_highlightedInfo == null) ? null : _highlightedInfo.
Container
as ComboBoxItem; }
src\Framework\System\Windows\Controls\DataGrid.cs (2)
3099
DependencyObject currentContainer = currentCell.ItemInfo.
Container
;
7044
DataGridRow row = (DataGridRow)info.
Container
;
src\Framework\System\Windows\Controls\ItemsControl.cs (30)
1831
FrameworkElement element = info.
Container
as FrameworkElement;
3147
UIElement itemContainer = itemsControl._focusedInfo.
Container
as UIElement;
3208
UIElement container = info.
Container
as UIElement;
3538
DependencyObject container = info.
Container
;
3574
DependencyObject container = info.
Container
;
3597
DependencyObject container = info.
Container
;
3608
DependencyObject container = info.
Container
;
3787
internal bool IsResolved { get { return
Container
!= UnresolvedContainer; } }
3788
internal bool IsKey { get { return
Container
== KeyContainer; } }
3789
internal bool IsRemoved { get { return
Container
== RemovedContainer; } }
3793
return new ItemInfo(Item,
Container
, Index);
3798
return (info.
Container
== UnresolvedContainer)
3831
if (this.
Container
== KeyContainer)
3832
return matchUnresolved || that.
Container
!= UnresolvedContainer;
3833
else if (that.
Container
== KeyContainer)
3834
return matchUnresolved || this.
Container
!= UnresolvedContainer;
3837
if (this.
Container
== UnresolvedContainer || that.
Container
== UnresolvedContainer)
3841
(this.
Container
== that.
Container
)
3842
? (this.
Container
== SentinelContainer)
3846
: (this.
Container
== SentinelContainer) || // sentinel matches non-sentinel
3847
(that.
Container
== SentinelContainer) ||
3848
( (this.
Container
== null || that.
Container
== null) && // null matches non-null
3866
if (
Container
== null && Index < 0)
3871
if (Index < 0 &&
Container
!= null)
3873
Index = generator.IndexFromContainer(
Container
);
3876
if (
Container
== null && Index >= 0)
3881
if (
Container
== SentinelContainer && Index >= 0)
src\Framework\System\Windows\Controls\ListBox.cs (5)
290
ListBoxItem listItem = (info != null) ? info.
Container
as ListBoxItem : null;
335
ListBoxItem focusedItemUI = (FocusedInfo != null) ? FocusedInfo.
Container
as ListBoxItem : null;
736
ListBoxItem listItem = info.
Container
as ListBoxItem;
939
ListBoxItem listItem = info.
Container
as ListBoxItem;
970
ListBoxItem listBoxItem = info.
Container
as ListBoxItem;
src\Framework\System\Windows\Controls\Menu.cs (1)
328
MenuItem newSelection = info.
Container
as MenuItem;
src\Framework\System\Windows\Controls\Primitives\Selector.cs (2)
1815
DependencyObject container = info.
Container
;
1840
DependencyObject container = info.
Container
;