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