10 types derived from ItemsControl
PresentationFramework (7)
src\Framework\System\Windows\Controls\HeaderedItemsControl.cs (1)
26public class HeaderedItemsControl : ItemsControl
src\Framework\System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
30public class DataGridCellsPresenter : ItemsControl
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
28public class DataGridColumnHeadersPresenter : ItemsControl
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (1)
32public abstract class MenuBase : ItemsControl
src\Framework\System\Windows\Controls\Primitives\Selector.cs (1)
40public abstract class Selector : ItemsControl
src\Framework\System\Windows\Controls\Primitives\StatusBar.cs (1)
25public class StatusBar : ItemsControl
src\Framework\System\Windows\Controls\TreeView.cs (1)
30public class TreeView : ItemsControl
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (1)
37internal class CategoryList : ItemsControl, IEnumerable<CategoryBase>, IStateContainer, INotifyPropertyChanged
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryLayoutContainer.cs (1)
12internal class CategoryLayoutContainer : ItemsControl
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\StandardCategoryLayout.cs (1)
14internal class StandardCategoryLayout : ItemsControl
3 instantiations of ItemsControl
PresentationFramework (2)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5875bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ItemsControl(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1351case KnownElements.ItemsControl: o = new System.Windows.Controls.ItemsControl(); break;
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
80panel = new ItemsControl();
484 references to ItemsControl
PresentationFramework (454)
src\Framework\MS\Internal\Controls\InnerItemCollectionView.cs (1)
450if (ItemsControl.EqualsEx(CurrentItem, item))
src\Framework\MS\Internal\Data\CollectionViewGroupInternal.cs (6)
280if (System.Windows.Controls.ItemsControl.EqualsEx(item, Items[k])) 312if ((index < 0 && System.Windows.Controls.ItemsControl.EqualsEx(item, group.Items[k])) || 471if (localIndex < n && System.Windows.Controls.ItemsControl.EqualsEx(ProtectedItems[localIndex], list[fullIndex])) 664if (System.Windows.Controls.ItemsControl.EqualsEx(x, y)) 672if (System.Windows.Controls.ItemsControl.EqualsEx(x, z)) 676else if (System.Windows.Controls.ItemsControl.EqualsEx(y, z))
src\Framework\MS\Internal\Data\CollectionViewGroupRoot.cs (1)
160Debug.Assert(System.Windows.Controls.ItemsControl.EqualsEx(item, ProtectedItems[index]), "RemoveSpecialItem finds inconsistent data");
src\Framework\MS\Internal\Data\CompositeCollectionView.cs (5)
235if (ItemsControl.EqualsEx(CurrentItem, item)) 902if (ItemsControl.EqualsEx(_collection[positionX], item)) 1169if (ItemsControl.EqualsEx(CurrentItem, item)) 1198if (ItemsControl.EqualsEx(item, CurrentItem)) 1205if (ItemsControl.EqualsEx(item, item2))
src\Framework\MS\Internal\Data\DifferencingCollection.cs (6)
66if (index < n && System.Windows.Controls.ItemsControl.EqualsEx(o, list[index])) 76if (index + 1 < n && System.Windows.Controls.ItemsControl.EqualsEx(o, list[index + 1])) 96if (index + 1 < n && System.Windows.Controls.ItemsControl.EqualsEx(o, list[index + 1])) 101if (System.Windows.Controls.ItemsControl.EqualsEx(target, list[index])) 130if (System.Windows.Controls.ItemsControl.EqualsEx(o, target)) 166if (System.Windows.Controls.ItemsControl.EqualsEx(target, list[index]))
src\Framework\MS\Internal\Data\EnumerableCollectionView.cs (4)
432if (!System.Windows.Controls.ItemsControl.EqualsEx(args.OldItems[i], _snapshot[index])) 442if (!System.Windows.Controls.ItemsControl.EqualsEx(args.OldItems[i], _snapshot[index])) 461if (!System.Windows.Controls.ItemsControl.EqualsEx(args.OldItems[i], _snapshot[oldIndex])) 475if (!System.Windows.Controls.ItemsControl.EqualsEx(args.OldItems[i], _snapshot[oldIndex]))
src\Framework\MS\Internal\Data\LiveShapingList.cs (3)
255if (x == y || System.Windows.Controls.ItemsControl.EqualsEx(x.Item, y.Item)) 329if (System.Windows.Controls.ItemsControl.EqualsEx(item, lsi.Item)) 532if (System.Windows.Controls.ItemsControl.EqualsEx(value, x.Item))
src\Framework\MS\Internal\Data\LiveShapingTree.cs (1)
105if (System.Windows.Controls.ItemsControl.EqualsEx(finger.Item.Item, item))
src\Framework\MS\Internal\Data\ObjectRef.cs (3)
507ItemsControl.EqualsEx(child.DataContext, parent.DataContext)) 529ItemsControl ic = ItemsControl.GetItemsOwner(layout);
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (2)
418if (!ItemsControl.EqualsEx(oldValue, RawValue(k-1))) 996if (!ItemsControl.EqualsEx(item, BindingExpression.GetReference(_arySVS[level].item))
src\Framework\MS\Internal\Data\RBTree.cs (1)
495return IndexOf(item, (x,y)=>{ return System.Windows.Controls.ItemsControl.EqualsEx(x,y); });
src\Framework\MS\Internal\Data\XmlBindingWorker.cs (2)
240ItemsControl ic; 265(ic = TargetElement as ItemsControl) != null)
src\Framework\MS\Internal\Helper.cs (4)
481System.Windows.Controls.ItemsControl ic = System.Windows.Controls.ItemsControl.GetItemsOwner(parent); 1085ItemsControl scrollingItemsControl, 1187ItemsControl scrollingItemsControl,
src\Framework\System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (5)
62ItemsControl owner = (ItemsControl)Owner; 113!ItemsControl.EqualsEx(peer.Item, dataItemHeader)) 164ItemsControl owner = (ItemsControl)Owner;
src\Framework\System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (4)
123ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(Owner); 287ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(Owner);
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (10)
95ItemsControl owner = (ItemsControl)(itemsControlAutomationPeer.Owner); 252ItemsControl parentItemsControl = (ItemsControl)ItemsControlAutomationPeer.Owner; 286ItemsControl parentItemsControl = (ItemsControl)ItemsControlAutomationPeer.Owner; 300internal static int GetPositionInSetFromItemsControl(ItemsControl itemsControl, object item) 315internal static int GetSizeOfSetFromItemsControl(ItemsControl itemsControl, object item) 696ItemsControl parent = itemsControlAutomationPeer.Owner as ItemsControl;
src\Framework\System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (14)
29protected ItemsControlAutomationPeer(ItemsControl owner): base(owner) 37ItemsControl owner = (ItemsControl)Owner; 50if(Owner as ItemsControl != null) 69ItemsControl owner = (ItemsControl)Owner; 236ItemsControl owner = this.Owner as ItemsControl; 258ItemsControl owner = (ItemsControl)Owner; 428ItemsControl itemsControl = (ItemsControl)Owner; 769public RecyclableWrapper(ItemsControl itemsControl, object item) 807ItemsControl _itemsControl;
src\Framework\System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (6)
97ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(owner); 121ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(owner); 155ItemsControl owner = (ItemsControl)Owner;
src\Framework\System\Windows\Automation\Peers\SelectorAutomationPeer.cs (1)
97int itemsCount = (owner as ItemsControl).Items.Count;
src\Framework\System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (2)
43ItemsControl itemscontrol = Owner as ItemsControl;
src\Framework\System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (4)
48ItemsControl owner = (ItemsControl)Owner; 72ItemsControl owner = (ItemsControl)Owner;
src\Framework\System\Windows\Automation\Peers\TreeViewDataItemAutomationPeer.cs (2)
319ItemsControl parent = itemsControlAutomationPeer.Owner as ItemsControl;
src\Framework\System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (2)
101object dataItem = (child as UIElement) != null ? (logicalParentAp.Owner as ItemsControl).GetItemOrContainerFromContainer(child as UIElement) : child; 384ItemsControl parent = ((TreeViewItem)Owner).ParentItemsControl;
src\Framework\System\Windows\Controls\DataGrid.cs (10)
2737if (index >= 0 && ItemsControl.EqualsEx(newItem, Items[index])) 2745if (index < Items.Count && ItemsControl.EqualsEx(newItem, Items[index])) 3103( ItemsControl.EqualsEx(CurrentItem, row.Item) && // rows match (the hard way) 5449ItemsControl itemsControl = ItemsControlFromItemContainer(e.OriginalSource as DependencyObject); 5640if ((e.Key == Key.Up && ItemsControl.EqualsEx(cvg.Items[0], currentInfo.Item)) || 5641(e.Key == Key.Down && ItemsControl.EqualsEx(cvg.Items[cvg.Items.Count - 1], currentInfo.Item))) 6011if (!ItemsControl.EqualsEx(CurrentCell.Item, rowInfo.Item)) 6199DataGrid focusedDataGrid = ItemsControl.ItemsControlFromItemContainer(startingRow) as DataGrid; 6752if (_editingRowInfo == null || !ItemsControl.EqualsEx(item, _editingRowInfo.Item) || 7776ItemsControl.ItemInfo info = cellInfo.ItemInfo;
src\Framework\System\Windows\Controls\DataGridCell.cs (3)
79internal void PrepareCell(object item, ItemsControl cellsPresenter, DataGridRow ownerRow) 1045dataGridOwner = ItemsControl.ItemsControlFromItemContainer(_owner) as DataGrid; 1086return ItemsControl.ItemsControlFromItemContainer(this) as DataGridCellsPresenter;
src\Framework\System\Windows\Controls\DataGridCellInfo.cs (5)
34_info = new ItemsControl.ItemInfo(item); 75internal DataGridCellInfo(ItemsControl.ItemInfo info, DataGridColumn column, DataGrid owner) 92_info = new ItemsControl.ItemInfo(item); 220internal ItemsControl.ItemInfo ItemInfo 290private ItemsControl.ItemInfo _info;
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (7)
888ItemsControl parentPresenter = ParentPresenter; 1057ItemsControl parentPresenter = ParentPresenter; 1790ItemsControl parentPresenter = ParentPresenter; 1814ItemsControl parentPresenter = ParentPresenter; 1873ItemsControl parentPresenter = ParentPresenter; 2441private ItemsControl ParentPresenter 2448return itemsPresenter.TemplatedParent as ItemsControl;
src\Framework\System\Windows\Controls\DataGridRow.cs (2)
177public static readonly DependencyProperty ItemsPanelProperty = ItemsControl.ItemsPanelProperty.AddOwner(typeof(DataGridRow)); 1053public static readonly DependencyProperty AlternationIndexProperty = ItemsControl.AlternationIndexProperty.AddOwner(typeof(DataGridRow));
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (5)
1045ItemsControl oldIC = _itemsControl; // backup the old value 1254private static ItemsControl FindItemsControlThroughTemplatedParent(GridViewHeaderRowPresenter presenter) 1257ItemsControl itemsControl = null; 1261itemsControl = fe as ItemsControl; 1653private ItemsControl _itemsControl;
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (3)
453ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(_viewItem) as ItemsControl;
src\Framework\System\Windows\Controls\GroupItem.cs (8)
66ItemsControl itemsControl = ParentItemsControl; 81ItemsControl itemsControl = groupItem.ParentItemsControl; 154internal void PrepareItemContainer(object item, ItemsControl parentItemsControl) 238internal void ClearItemContainer(object item, ItemsControl parentItemsControl) 375private ItemsControl ParentItemsControl 383ItemsControl parentItemsControl = parent as ItemsControl; 401DependencyObject owner = ItemsControl.GetItemsOwnerInternal(parentPanel);
src\Framework\System\Windows\Controls\HeaderedItemsControl.cs (2)
261internal void PrepareHeaderedItemsControl(object item, ItemsControl parentItemsControl) 401void PrepareHierarchy(object item, ItemsControl parentItemsControl)
src\Framework\System\Windows\Controls\ItemCollection.cs (6)
48/// A <seealso cref="System.Windows.Controls.ItemsControl"/> uses the data 244ModelParent.SetValue(ItemsControl.HasItemsPropertyKey, BooleanBoxes.TrueBox); 270ModelParent.ClearValue(ItemsControl.HasItemsPropertyKey); 393ModelParent.SetValue(ItemsControl.HasItemsPropertyKey, BooleanBoxes.TrueBox); 413ModelParent.ClearValue(ItemsControl.HasItemsPropertyKey); 436ModelParent.ClearValue(ItemsControl.HasItemsPropertyKey);
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (10)
602delegate(object o, DependencyObject d) { return ItemsControl.EqualsEx(o, item); }, 1042if (!ItemsControl.EqualsEx(genItem, actualItem)) 1219ItemsControl.ClearAlternationIndex(((RealizedItemBlock)block).ContainerAt(offset)); 1862index = (block == _itemMap) ? -1 : ItemsControl.GetAlternationIndex(rib.ContainerAt(offset)); 1884ItemsControl.SetAlternationIndex(rib.ContainerAt(offset), index); 1901index = (block == _itemMap) ? 1 : ItemsControl.GetAlternationIndex(rib.ContainerAt(offset)); 1923ItemsControl.SetAlternationIndex(rib.ContainerAt(offset), index); 2239ItemsControl.EqualsEx(rib.ItemAt(0), 2389Debug.Assert(ItemsControl.EqualsEx(item, ItemsInternal[index]), "Event contains the wrong index"); 3066if (ItemsControl.EqualsEx(_entry[k].Item, item))
src\Framework\System\Windows\Controls\ItemContainerTemplateSelector.cs (2)
24public virtual DataTemplate SelectTemplate(object item, ItemsControl parentItemsControl) 32public override DataTemplate SelectTemplate(object item, ItemsControl parentItemsControl)
src\Framework\System\Windows\Controls\ItemsControl.cs (77)
65DefaultStyleKeyProperty.OverrideMetadata(typeof(ItemsControl), new FrameworkPropertyMetadata(typeof(ItemsControl))); 66_dType = DependencyObjectType.FromSystemTypeInternal(typeof(ItemsControl)); 67EventManager.RegisterClassHandler(typeof(ItemsControl), Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGotFocus)); 68VirtualizingStackPanel.ScrollUnitProperty.OverrideMetadata(typeof(ItemsControl), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnScrollingModeChanged), new CoerceValueCallback(CoerceScrollingMode))); 69VirtualizingPanel.CacheLengthProperty.OverrideMetadata(typeof(ItemsControl), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnCacheSizeChanged))); 70VirtualizingPanel.CacheLengthUnitProperty.OverrideMetadata(typeof(ItemsControl), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnCacheSizeChanged), new CoerceValueCallback(CoerceVirtualizationCacheLengthUnit))); 85if (((ItemsControl)d).IsGrouping && baseValueSource == BaseValueSource.Default) 107if ( !((ItemsControl)d).IsGrouping && !(d is TreeView) && baseValueSource == BaseValueSource.Default ) 187= DependencyProperty.Register("ItemsSource", typeof(IEnumerable), typeof(ItemsControl), 193ItemsControl ic = (ItemsControl) d; 344typeof(ItemsControl), 374typeof(ItemsControl), 396ItemsControl ctrl = (ItemsControl) d; 461typeof(ItemsControl), 483((ItemsControl) d).OnItemTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 512typeof(ItemsControl), 539((ItemsControl)d).OnItemTemplateSelectorChanged((DataTemplateSelector) e.OldValue, (DataTemplateSelector) e.NewValue); 567typeof(ItemsControl), 590ItemsControl ctrl = (ItemsControl)d; 616typeof(ItemsControl), 640ItemsControl ctrl = (ItemsControl)d; 688typeof(ItemsControl), 711((ItemsControl) d).OnItemContainerStyleChanged((Style) e.OldValue, (Style) e.NewValue); 740typeof(ItemsControl), 767((ItemsControl) d).OnItemContainerStyleSelectorChanged((StyleSelector) e.OldValue, (StyleSelector) e.NewValue); 792public static ItemsControl GetItemsOwner(DependencyObject element) 794ItemsControl container = null; 810container = panel.TemplatedParent as ItemsControl; 819ItemsControl temp; 830internal static DependencyObject GetItemsOwnerInternal(DependencyObject element, out ItemsControl itemsControl) 851itemsControl = container as ItemsControl; 865= DependencyProperty.Register("ItemsPanel", typeof(ItemsPanelTemplate), typeof(ItemsControl), 895((ItemsControl) d).OnItemsPanelChanged((ItemsPanelTemplate) e.OldValue, (ItemsPanelTemplate) e.NewValue); 910DependencyProperty.RegisterReadOnly("IsGrouping", typeof(bool), typeof(ItemsControl), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnIsGroupingChanged))); 932((ItemsControl)d).OnIsGroupingChanged(e); 984= DependencyProperty.Register("GroupStyleSelector", typeof(GroupStyleSelector), typeof(ItemsControl), 1007((ItemsControl) d).OnGroupStyleSelectorChanged((GroupStyleSelector) e.OldValue, (GroupStyleSelector) e.NewValue); 1032typeof(ItemsControl), 1063ItemsControl ctrl = (ItemsControl) d; 1085typeof(ItemsControl), 1130typeof(ItemsControl), 1150typeof(ItemsControl), 1169public static ItemsControl ItemsControlFromItemContainer(DependencyObject container) 1176ItemsControl ic = LogicalTreeHelper.GetParent(ui) as ItemsControl; 1190return ItemsControl.GetItemsOwner(ui); 1199public static DependencyObject ContainerFromElement(ItemsControl itemsControl, DependencyObject element) 1238private static bool IsContainerForItemsControl(DependencyObject element, ItemsControl itemsControl) 1455ItemsControl ic = ItemsControlFromItemContainer(container); 1609ItemsControl ic; 1628else if ((ic = element as ItemsControl) != null) 1645ItemsControl ic; 1664else if ((ic = element as ItemsControl) != null) 1753internal void PrepareItemsControl(object item, ItemsControl parentItemsControl) 2164ItemsControl itemsControl = null; 2357ItemsControl itemsControl = GetEncapsulatingItemsControl(firstElement); 2423ItemsControl itemsControl = GetEncapsulatingItemsControl(firstElement); 2489ItemsControl itemsControl = GetEncapsulatingItemsControl(lastElement); 2517ItemsControl itemsControl = fe as ItemsControl; 3136ItemsControl itemsControl = (ItemsControl)sender; 3353private static ItemsControl GetEncapsulatingItemsControl(FrameworkElement element) 3357ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(element); 3369ItemsControl itemsControl = null; 3373private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container, out ItemsControl itemsControl) 3380itemsControl = ItemsControl.ItemsControlFromItemContainer(element); 3579else if (info.IsRemoved || !ItemsControl.EqualsEx(info.Item, 3623{ return ItemsControl.EqualsEx(o, item) && 3827if (!ItemsControl.EqualsEx(this.Item, that.Item))
src\Framework\System\Windows\Controls\ItemsPresenter.cs (4)
92internal ItemsControl Owner 212ItemsControl owner = templatedParent as ItemsControl; 343ItemsControl _owner;
src\Framework\System\Windows\Controls\ListBoxItem.cs (3)
337ItemsControl oldItemsControl = null; 349oldItemsControl = ItemsControl.GetItemsOwner(oldParent); 386return ItemsControl.ItemsControlFromItemContainer(this) as Selector;
src\Framework\System\Windows\Controls\MenuItem.cs (16)
369ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(menuItem); 451MenuItem parent = ItemsControl.ItemsControlFromItemContainer(this) as MenuItem; 1205ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1702MenuItem parent = ItemsControl.ItemsControlFromItemContainer(this) as MenuItem; 1722ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1853ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 2039ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 2376ItemsControl owner = ItemsControl.ItemsControlFromItemContainer(this); 2379owner = VisualTreeHelper.GetParent(this) as ItemsControl; 2416ItemsControl parent = ItemsControlFromItemContainer(this);
src\Framework\System\Windows\Controls\Panel.cs (6)
256DependencyObject parent = ItemsControl.GetItemsOwnerInternal(this); 257ItemsControl itemsControl = parent as ItemsControl; 532bool isItemsHost = (ItemsControl.GetItemsOwnerInternal(this) != null); 582ItemsControl itemsOwner = ItemsControl.GetItemsOwner(this);
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
937_parentPresenter = ItemsControl.ItemsControlFromItemContainer(this) as DataGridColumnHeadersPresenter;
src\Framework\System\Windows\Controls\Primitives\DataGridRowsPresenter.cs (1)
152_owner = ItemsControl.GetItemsOwner(this) as DataGrid;
src\Framework\System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (2)
310ItemsControl ic = ItemsControl.ItemsControlFromItemContainer(TemplatedParent);
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (1)
699internal static void SetSuspendingPopupAnimation(ItemsControl menu, MenuItem ignore, bool suspend)
src\Framework\System\Windows\Controls\Primitives\Selector.cs (4)
1896ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(o); 1936ItemsControl itemsControl = null; 1939itemsControl = ItemsControl.ItemsControlFromItemContainer(element);
src\Framework\System\Windows\Controls\SelectedItemCollection.cs (3)
50foreach (ItemsControl.ItemInfo current in _selector._selectedItems) 231internal void Add(ItemsControl.ItemInfo info) 244internal void Remove(ItemsControl.ItemInfo info)
src\Framework\System\Windows\Controls\SelectionChangedEventArgs.cs (6)
51internal SelectionChangedEventArgs(List<ItemsControl.ItemInfo> unselectedInfos, List<ItemsControl.ItemInfo> selectedInfos) 98internal List<ItemsControl.ItemInfo> RemovedInfos 106internal List<ItemsControl.ItemInfo> AddedInfos 134private List<ItemsControl.ItemInfo> _addedInfos; 135private List<ItemsControl.ItemInfo> _removedInfos;
src\Framework\System\Windows\Controls\TabControl.cs (1)
538!ItemsControl.EqualsEx(selectedItem, ItemContainerGenerator.ItemFromContainer(tabItem)))
src\Framework\System\Windows\Controls\TabItem.cs (1)
498return ItemsControl.ItemsControlFromItemContainer(this) as TabControl;
src\Framework\System\Windows\Controls\TextSearch.cs (10)
47private TextSearch(ItemsControl itemsControl) 64internal static TextSearch EnsureInstance(ItemsControl itemsControl) 253_attachedTo.NavigateToItem(matchedItem, matchedItemIndex, new ItemsControl.ItemNavigateArgs(Keyboard.PrimaryDevice, ModifierKeys.None)); 393private static int FindMatchingPrefix(ItemsControl itemsControl, string primaryTextPath, string prefix, 522internal static MatchedTextInfo FindMatchingPrefix(ItemsControl itemsControl, string prefix) 578private static string GetPrimaryTextPath(ItemsControl itemsControl) 653internal static string GetPrimaryTextFromItem(ItemsControl itemsControl, object item) 668private static BindingExpression CreateBindingExpression(ItemsControl itemsControl, object item, string primaryTextPath) 743return EnsureInstance(d as ItemsControl); 852private ItemsControl _attachedTo;
src\Framework\System\Windows\Controls\ToolBar.cs (2)
398ToolBar toolBar = ItemsControl.ItemsControlFromItemContainer(element) as ToolBar; 657if (currentFocusElement != null && ItemsControl.ItemsControlFromItemContainer(currentFocusElement) == this)
src\Framework\System\Windows\Controls\TreeView.cs (2)
708ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(_selectedContainer);
src\Framework\System\Windows\Controls\TreeViewItem.cs (9)
433ItemsControl parent = ParentItemsControl; 442parent = ItemsControl.ItemsControlFromItemContainer(parent); 463internal ItemsControl ParentItemsControl 467return ItemsControl.ItemsControlFromItemContainer(this); 497ItemsControl parent = ParentItemsControl; 693ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(this); 892internal void PrepareItemContainer(object item, ItemsControl parentItemsControl) 910internal void ClearItemContainer(object item, ItemsControl parentItemsControl)
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (4)
1331protected override DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner) 1621ItemsControl.ItemInfo rowInfo = owner.ItemInfoFromIndex(rowIndex); 1645ItemsControl.ItemInfo rowInfo = _owner.ItemInfoFromIndex(rowIndex); 1658protected virtual DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner)
src\Framework\System\Windows\Controls\VirtualizingPanel.cs (2)
394ItemsControl ic = d as ItemsControl;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (70)
746ItemsControl itemsControl; 747ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 834ItemsControl itemsControl; 835ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 1166ElementViewportPosition elementPosition = ItemsControl.GetElementViewportPosition( 1206ItemsControl itemsControl = fe as ItemsControl; 1226ItemsControl itemsControl; 1229if ((itemsControl = fe as ItemsControl) != null) 1578ItemsControl itemsControl = ItemsControl.GetItemsOwner(this); 1645private void BringContainerIntoView(ItemsControl itemsControl, int itemIndex) 1955ItemsControl itemsControl = ItemsControl.GetItemsOwner(this); 2104ItemsControl itemsControl = null; 3248ItemsControl itemsControl = null; 3685DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this); 3724ItemsControl itemsControl; 3945ItemsControl itemsControl; 3946ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 4009ItemsControl itemsControl = null; 4010DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 4062ItemsControl itemsControl = null; 4065DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(itemsHost, out itemsControl); 4080out ItemsControl itemsControl, 4096ItemsControl parentItemsControl = null; 4097DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 4105parentItemsControl = ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent(itemsControl)) as ItemsControl; 4123ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent(itemsOwner)) as IContainItemStorage; 4156ItemsControl itemsControl, 6389ItemsControl scrollingItemsControl = GetScrollingItemsControl(child); 6424private ItemsControl GetScrollingItemsControl(UIElement container) 6428ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(container); 6437parent = ItemsControl.ItemsControlFromItemContainer(parent); 6446ItemsControl parentItemsControl = parent as ItemsControl; 8874ItemsControl itemsControl) 8890ItemsControl itemsControl, 9062ItemsControl itemsControl = ItemsControl.GetItemsOwner(this); 9246ItemsControl itemsControl = null; 9247ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 9292private bool NotifyCleanupItem(int childIndex, UIElementCollection children, ItemsControl itemsControl) 9297private bool NotifyCleanupItem(UIElement child, ItemsControl itemsControl) 10859ItemsControl itemsControl; 10889ItemsControl scrollingItemsControl = ItemsControl.GetItemsOwner(this); 10966ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent((Visual)itemStorageProvider)) as IContainItemStorage; 11921ItemsControl target = o as ItemsControl; 11990ItemsControl itemsControl) 12156private WeakReference<ItemsControl> _wrIC; 12163private ScrollTracer(ItemsControl itemsControl, VirtualizingStackPanel vsp, TraceList traceList) 12165_wrIC = new WeakReference<ItemsControl>(itemsControl); 12198private void IdentifyTrace(ItemsControl ic, VirtualizingStackPanel vsp) 12244ItemsControl ic; 12262ItemsControl ic; 12341private static List<Tuple<WeakReference<ItemsControl>,TraceList>> s_TargetToTraceListMap 12342= new List<Tuple<WeakReference<ItemsControl>,TraceList>>(); 12345static TraceList TraceListForItemsControl(ItemsControl target) 12354WeakReference<ItemsControl> wr = s_TargetToTraceListMap[i].Item1; 12355ItemsControl itemsControl; 12373private static TraceList AddToMap(ItemsControl target) 12402new Tuple<WeakReference<ItemsControl>,TraceList>( 12403new WeakReference<ItemsControl>(target), 12427WeakReference<ItemsControl> wr = s_TargetToTraceListMap[i].Item1; 12428ItemsControl unused; 12900DependencyObject parentContainer = ItemsControl.ContainerFromElement(null, vsp);
src\Framework\System\Windows\Data\BindingExpression.cs (4)
934if (StatusInternal == BindingStatusInternal.Inactive || !System.Windows.Controls.ItemsControl.EqualsEx(item, DataItem)) 1486bool realTransfer = !(IsInUpdate && System.Windows.Controls.ItemsControl.EqualsEx(value, Value)); 2293if (!System.Windows.Controls.ItemsControl.EqualsEx(DataItem, item)) 2421if (!System.Windows.Controls.ItemsControl.EqualsEx(DataItem, newItem))
src\Framework\System\Windows\Data\BindingExpressionBase.cs (3)
1119if (ItemsControl.EqualsEx(value, EffectiveTargetNullValue)) 1734!ItemsControl.EqualsEx( contextElement.GetValue(dataContextDP), 2362if (ItemsControl.EqualsEx(toRemove[j].ErrorContent, errorContent))
src\Framework\System\Windows\Data\BindingGroup.cs (5)
618if (_hasMultipleInheritanceContexts && property != ItemsControl.ItemBindingGroupProperty && TraceData.IsEnabled) 834!ItemsControl.EqualsEx(dataContextItem, itemReference.Target)) 1302if (ItemsControl.EqualsEx(item, list[i].Target)) 1600ItemsControl.EqualsEx(item, entry.Item)) 1937ItemsControl.EqualsEx(item, entry.Item))
src\Framework\System\Windows\Data\BindingListCollectionView.cs (6)
863if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 928if (index >= InternalList.Count || !System.Windows.Controls.ItemsControl.EqualsEx(item, GetItemAt(index))) 981if (System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 1104if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _editItem)) 1731else if (IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 2303if (!IsAddingNew || !System.Windows.Controls.ItemsControl.EqualsEx(_newItem, item))
src\Framework\System\Windows\Data\CollectionView.cs (3)
527if (System.Windows.Controls.ItemsControl.EqualsEx(CurrentItem, item) || System.Windows.Controls.ItemsControl.EqualsEx(NewItemPlaceholder, item)) 536bool isNewItem = (ecv != null && ecv.IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(item, ecv.CurrentAddItem));
src\Framework\System\Windows\Data\CompositeCollection.cs (1)
37/// A <seealso cref="System.Windows.Controls.ItemsControl"/> uses the data
src\Framework\System\Windows\Data\ListCollectionView.cs (17)
773if (!System.Windows.Controls.ItemsControl.EqualsEx(newItem, SourceList[index])) 783Debug.Assert(_newItemIndex != -2 && System.Windows.Controls.ItemsControl.EqualsEx(newItem, _newItem), "AddNew did not raise expected events"); 1043if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 1108if (index >= InternalCount || !System.Windows.Controls.ItemsControl.EqualsEx(item, GetItemAt(index))) 1180if (System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 1375if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _editItem)) 1928(IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(_newItem, newItem))); 1966System.Windows.Controls.ItemsControl.EqualsEx(ItemFrom(InternalList[localOldIndex]), oldItem)) 2019bool simpleMove = System.Windows.Controls.ItemsControl.EqualsEx(oldItem, newItem); 2028System.Windows.Controls.ItemsControl.EqualsEx(InternalList[localOldIndex], oldItem)) 2202else if (IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 2686System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 2713if (!System.Windows.Controls.ItemsControl.EqualsEx(item, ilFull[index])) 2812if (System.Windows.Controls.ItemsControl.EqualsEx(ilFull[fullIndex], ilPartial[localIndex])) 2818else if (System.Windows.Controls.ItemsControl.EqualsEx(item, ilPartial[localIndex])) 3005if (!IsAddingNew || !System.Windows.Controls.ItemsControl.EqualsEx(_newItem, item)) 3217if (System.Windows.Controls.ItemsControl.EqualsEx(item, ilFull[index]))
src\Framework\System\Windows\Data\MultiBindingExpression.cs (2)
964if (ItemsControl.EqualsEx(value, newValue)) 1338bool realTransfer = !(IsInUpdate && ItemsControl.EqualsEx(value, Value));
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
3093ElementViewportPosition sourceElementPosition = ItemsControl.GetElementViewportPosition(viewportBoundsElement, 3094ItemsControl.TryGetTreeViewItemHeader(sourceElement) as UIElement, 3120currentRectElement = ItemsControl.TryGetTreeViewItemHeader(currElement); 3124ElementViewportPosition currentViewportPosition = ItemsControl.GetElementViewportPosition(
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
421case 329: t = () => typeof(ItemsControl); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (21)
2993Type type = typeof(System.Windows.Controls.ItemsControl); 2994DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemContainerStyleProperty; 2996this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3009Type type = typeof(System.Windows.Controls.ItemsControl); 3010DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemContainerStyleSelectorProperty; 3012this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3025Type type = typeof(System.Windows.Controls.ItemsControl); 3026DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemTemplateProperty; 3028this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3041Type type = typeof(System.Windows.Controls.ItemsControl); 3042DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemTemplateSelectorProperty; 3044this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3057Type type = typeof(System.Windows.Controls.ItemsControl); 3058DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemsPanelProperty; 3060this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3073Type type = typeof(System.Windows.Controls.ItemsControl); 3074DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemsSourceProperty; 3076this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 4927Type type = typeof(System.Windows.Controls.ItemsControl); 4929this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 4935bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ItemsControl)target).Items; };
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5873typeof(System.Windows.Controls.ItemsControl),
src\Framework\System\Windows\Markup\KnownTypes.cs (8)
1835return System.Windows.Controls.ItemsControl.ItemContainerStyleProperty; 1837return System.Windows.Controls.ItemsControl.ItemContainerStyleSelectorProperty; 1839return System.Windows.Controls.ItemsControl.ItemTemplateProperty; 1841return System.Windows.Controls.ItemsControl.ItemTemplateSelectorProperty; 1843return System.Windows.Controls.ItemsControl.ItemsPanelProperty; 1845return System.Windows.Controls.ItemsControl.ItemsSourceProperty; 2450return (o as System.Windows.Controls.ItemsControl).Items; 5873case KnownElements.ItemsControl: t = typeof(System.Windows.Controls.ItemsControl); break;
src\Framework\System\Windows\StyleHelper.cs (1)
5600if (dp == ItemsControl.ItemsPanelProperty || dp == FrameworkElement.ContextMenuProperty || dp == FrameworkElement.ToolTipProperty)
System.Activities.Presentation (30)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryContainerAutomationPeer.cs (8)
105AddCategoryEditors(children, VisualTreeUtils.GetNamedChild<ItemsControl>(_container, "PART_BasicCategoryEditors"), Resources.PropertyEditing_BasicCategoryEditors); 106AddCategoryProperties(children, VisualTreeUtils.GetNamedChild<ItemsControl>(_container, "PART_BasicPropertyList")); 125private static void AddCategoryEditors(List<AutomationPeer> peers, ItemsControl editors, string containerDisplayName) 137private static void AddCategoryProperties(List<AutomationPeer> peers, ItemsControl properties) 401public CategoryEditorListAutomationPeer(string displayName, ItemsControl owner) 414return typeof(ItemsControl).Name; 501CategoryContainerAutomationPeer.AddCategoryEditors(_children, VisualTreeUtils.GetNamedChild<ItemsControl>(_container, "PART_AdvancedCategoryEditors"), Resources.PropertyEditing_AdvancedCategoryEditors); 502CategoryContainerAutomationPeer.AddCategoryProperties(_children, VisualTreeUtils.GetNamedChild<ItemsControl>(_container, "PART_AdvancedPropertyList"));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\CategoryListAutomationPeer.cs (1)
68return typeof(ItemsControl).Name;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\SubPropertyEditorAutomationPeer.cs (2)
103ItemsControl properties = VisualTreeUtils.GetNamedChild<ItemsControl>(_editor, "PART_SubPropertyList");
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CiderCategoryContainer.cs (12)
56private ItemsControl _basicCategoryEditorsContainer; 57private ItemsControl _advancedCategoryEditorsContainer; 58private ItemsControl _basicPropertyContainersContainer; 59private ItemsControl _advancedPropertyContainersContainer; 133private ItemsControl BasicCategoryEditorsContainer 145private ItemsControl AdvancedCategoryEditorsContainer 157private ItemsControl BasicPropertyContainersContainer 169private ItemsControl AdvancedPropertyContainersContainer 336_basicCategoryEditorsContainer = VisualTreeUtils.GetNamedChild<ItemsControl>(this, "PART_BasicCategoryEditors"); 337_advancedCategoryEditorsContainer = VisualTreeUtils.GetNamedChild<ItemsControl>(this, "PART_AdvancedCategoryEditors"); 338_basicPropertyContainersContainer = VisualTreeUtils.GetNamedChild<ItemsControl>(this, "PART_BasicPropertyList"); 339_advancedPropertyContainersContainer = VisualTreeUtils.GetNamedChild<ItemsControl>(this, "PART_AdvancedPropertyList");
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\SubPropertyEditor.cs (4)
73private ItemsControl _subPropertyListControl; 206private ItemsControl SubPropertyListControl 211_subPropertyListControl = VisualTreeUtils.GetNamedChild<ItemsControl>(this, "PART_SubPropertyList"); 423ItemsControl subPropertyListControl = this.SubPropertyListControl;
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
936ItemsControl breadcrumbItems = sender as ItemsControl;
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
70ItemsControl panel;