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