12 types derived from ItemsControl
PresentationFramework (7)
System\Windows\Controls\HeaderedItemsControl.cs (1)
24public class HeaderedItemsControl : ItemsControl
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
23public class DataGridCellsPresenter : ItemsControl
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
22public class DataGridColumnHeadersPresenter : ItemsControl
System\Windows\Controls\Primitives\MenuBase.cs (1)
20public abstract class MenuBase : ItemsControl
System\Windows\Controls\Primitives\Selector.cs (1)
26public abstract class Selector : ItemsControl
System\Windows\Controls\Primitives\StatusBar.cs (1)
20public class StatusBar : ItemsControl
System\Windows\Controls\TreeView.cs (1)
23public class TreeView : ItemsControl
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
24public class RibbonContextualTabGroupItemsControl : ItemsControl
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (1)
24public class RibbonControlGroup : ItemsControl
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
49public class RibbonGallery : ItemsControl, IWeakEventListener, IPreviewCommandSource
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
37public class RibbonQuickAccessToolBar : ItemsControl
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (1)
25public class RibbonTabHeaderItemsControl : ItemsControl
2 instantiations of ItemsControl
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
6423DefaultConstructor = delegate () { return new System.Windows.Controls.ItemsControl(); },
System\Windows\Markup\KnownTypes.cs (1)
1343case KnownElements.ItemsControl: o = new System.Windows.Controls.ItemsControl(); break;
569 references to ItemsControl
Microsoft.VisualStudio.LanguageServices (1)
InheritanceMargin\MarginGlyph\MenuItemContainerTemplateSelector.cs (1)
16public override DataTemplate SelectTemplate(object item, ItemsControl parentItemsControl)
PresentationFramework (458)
MS\Internal\Controls\InnerItemCollectionView.cs (1)
446if (ItemsControl.EqualsEx(CurrentItem, item))
MS\Internal\Data\CollectionViewGroupInternal.cs (6)
269if (System.Windows.Controls.ItemsControl.EqualsEx(item, Items[k])) 301if ((index < 0 && System.Windows.Controls.ItemsControl.EqualsEx(item, group.Items[k])) || 457if (localIndex < n && System.Windows.Controls.ItemsControl.EqualsEx(ProtectedItems[localIndex], list[fullIndex])) 631if (System.Windows.Controls.ItemsControl.EqualsEx(x, y)) 639if (System.Windows.Controls.ItemsControl.EqualsEx(x, z)) 643else if (System.Windows.Controls.ItemsControl.EqualsEx(y, z))
MS\Internal\Data\CollectionViewGroupRoot.cs (1)
151Debug.Assert(System.Windows.Controls.ItemsControl.EqualsEx(item, ProtectedItems[index]), "RemoveSpecialItem finds inconsistent data");
MS\Internal\Data\CompositeCollectionView.cs (6)
218if (ItemsControl.EqualsEx(CurrentItem, item)) 870if (ItemsControl.EqualsEx(_collection[positionX], item)) 1136if (ItemsControl.EqualsEx(CurrentItem, item)) 1165if (ItemsControl.EqualsEx(item, CurrentItem)) 1172if (ItemsControl.EqualsEx(item, item2)) 1651if (!ItemsControl.EqualsEx(CurrentItem, GetItem(CurrentPosition, out x, out y)) && !_collection.HasRepeatedCollection())
MS\Internal\Data\DifferencingCollection.cs (6)
60if (index < n && System.Windows.Controls.ItemsControl.EqualsEx(o, list[index])) 70if (index + 1 < n && System.Windows.Controls.ItemsControl.EqualsEx(o, list[index + 1])) 90if (index + 1 < n && System.Windows.Controls.ItemsControl.EqualsEx(o, list[index + 1])) 95if (System.Windows.Controls.ItemsControl.EqualsEx(target, list[index])) 124if (System.Windows.Controls.ItemsControl.EqualsEx(o, target)) 160if (System.Windows.Controls.ItemsControl.EqualsEx(target, list[index]))
MS\Internal\Data\EnumerableCollectionView.cs (4)
424if (!System.Windows.Controls.ItemsControl.EqualsEx(args.OldItems[i], _snapshot[index])) 434if (!System.Windows.Controls.ItemsControl.EqualsEx(args.OldItems[i], _snapshot[index])) 453if (!System.Windows.Controls.ItemsControl.EqualsEx(args.OldItems[i], _snapshot[oldIndex])) 467if (!System.Windows.Controls.ItemsControl.EqualsEx(args.OldItems[i], _snapshot[oldIndex]))
MS\Internal\Data\IndexedEnumerable.cs (1)
395Debug.Assert(System.Windows.Controls.ItemsControl.EqualsEx(_cachedItem, current), "EnsureCacheCurrent: _cachedItem out of sync with _enumerator.Current");
MS\Internal\Data\LiveShapingList.cs (3)
247if (x == y || System.Windows.Controls.ItemsControl.EqualsEx(x.Item, y.Item)) 321if (System.Windows.Controls.ItemsControl.EqualsEx(item, lsi.Item)) 523if (System.Windows.Controls.ItemsControl.EqualsEx(value, x.Item))
MS\Internal\Data\LiveShapingTree.cs (1)
101if (System.Windows.Controls.ItemsControl.EqualsEx(finger.Item.Item, item))
MS\Internal\Data\ObjectRef.cs (3)
490ItemsControl.EqualsEx(child.DataContext, parent.DataContext)) 512ItemsControl ic = ItemsControl.GetItemsOwner(layout);
MS\Internal\Data\PropertyPathWorker.cs (2)
411if (!ItemsControl.EqualsEx(oldValue, RawValue(k - 1))) 983if (!ItemsControl.EqualsEx(item, BindingExpression.GetReference(_arySVS[level].item))
MS\Internal\Data\RBNode.cs (1)
753if (!System.Windows.Controls.ItemsControl.EqualsEx(node.GetItemAt(j), default(T)))
MS\Internal\Data\RBTree.cs (1)
484return IndexOf(item, (x, y) => { return System.Windows.Controls.ItemsControl.EqualsEx(x, y); });
MS\Internal\Data\XmlBindingWorker.cs (2)
232ItemsControl ic; 257(ic = TargetElement as ItemsControl) != null)
MS\Internal\Helper.cs (4)
462System.Windows.Controls.ItemsControl ic = System.Windows.Controls.ItemsControl.GetItemsOwner(parent); 1053ItemsControl scrollingItemsControl, 1155ItemsControl scrollingItemsControl,
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (5)
63ItemsControl owner = (ItemsControl)Owner; 114!ItemsControl.EqualsEx(peer.Item, dataItemHeader)) 165ItemsControl owner = (ItemsControl)Owner;
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (4)
114ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(Owner); 285ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(Owner);
System\Windows\Automation\Peers\ItemAutomationPeer.cs (10)
87ItemsControl owner = (ItemsControl)(itemsControlAutomationPeer.Owner); 275ItemsControl parentItemsControl = (ItemsControl)ItemsControlAutomationPeer.Owner; 309ItemsControl parentItemsControl = (ItemsControl)ItemsControlAutomationPeer.Owner; 323internal static int GetPositionInSetFromItemsControl(ItemsControl itemsControl, object item) 338internal static int GetSizeOfSetFromItemsControl(ItemsControl itemsControl, object item) 732ItemsControl parent = itemsControlAutomationPeer.Owner as ItemsControl;
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (14)
19protected ItemsControlAutomationPeer(ItemsControl owner): base(owner) 27ItemsControl owner = (ItemsControl)Owner; 40if(Owner as ItemsControl != null) 59ItemsControl owner = (ItemsControl)Owner; 220ItemsControl owner = this.Owner as ItemsControl; 242ItemsControl owner = (ItemsControl)Owner; 403ItemsControl itemsControl = (ItemsControl)Owner; 739public RecyclableWrapper(ItemsControl itemsControl, object item) 777private ItemsControl _itemsControl;
System\Windows\Automation\Peers\ItemsControlWrapperAutomationPeer.cs (1)
12public ItemsControlWrapperAutomationPeer(ItemsControl owner)
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (6)
87ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(owner); 119ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(owner); 166ItemsControl owner = (ItemsControl)Owner;
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (1)
87int itemsCount = (owner as ItemsControl).Items.Count;
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (2)
35ItemsControl itemscontrol = Owner as ItemsControl;
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (4)
37ItemsControl owner = (ItemsControl)Owner; 61ItemsControl owner = (ItemsControl)Owner;
System\Windows\Automation\Peers\TreeViewDataItemAutomationPeer.cs (2)
298ItemsControl parent = itemsControlAutomationPeer.Owner as ItemsControl;
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (2)
92object dataItem = (child as UIElement) != null ? (logicalParentAp.Owner as ItemsControl).GetItemOrContainerFromContainer(child as UIElement) : child; 367ItemsControl parent = ((TreeViewItem)Owner).ParentItemsControl;
System\Windows\Controls\DataGrid.cs (10)
2711if (index >= 0 && ItemsControl.EqualsEx(newItem, Items[index])) 2719if (index < Items.Count && ItemsControl.EqualsEx(newItem, Items[index])) 3074(ItemsControl.EqualsEx(CurrentItem, row.Item) && // rows match (the hard way) 5402ItemsControl itemsControl = ItemsControlFromItemContainer(e.OriginalSource as DependencyObject); 5593if ((e.Key == Key.Up && ItemsControl.EqualsEx(cvg.Items[0], currentInfo.Item)) || 5594(e.Key == Key.Down && ItemsControl.EqualsEx(cvg.Items[cvg.Items.Count - 1], currentInfo.Item))) 5964if (!ItemsControl.EqualsEx(CurrentCell.Item, rowInfo.Item)) 6149DataGrid focusedDataGrid = ItemsControl.ItemsControlFromItemContainer(startingRow) as DataGrid; 6702if (_editingRowInfo == null || !ItemsControl.EqualsEx(item, _editingRowInfo.Item) || 7726ItemsControl.ItemInfo info = cellInfo.ItemInfo;
System\Windows\Controls\DataGridCell.cs (3)
76internal void PrepareCell(object item, ItemsControl cellsPresenter, DataGridRow ownerRow) 1067dataGridOwner = ItemsControl.ItemsControlFromItemContainer(_owner) as DataGrid; 1108return ItemsControl.ItemsControlFromItemContainer(this) as DataGridCellsPresenter;
System\Windows\Controls\DataGridCellInfo.cs (5)
24_info = new ItemsControl.ItemInfo(item); 62internal DataGridCellInfo(ItemsControl.ItemInfo info, DataGridColumn column, DataGrid owner) 79_info = new ItemsControl.ItemInfo(item); 207internal ItemsControl.ItemInfo ItemInfo 277private ItemsControl.ItemInfo _info;
System\Windows\Controls\DataGridCellsPanel.cs (7)
880ItemsControl parentPresenter = ParentPresenter; 1049ItemsControl parentPresenter = ParentPresenter; 1778ItemsControl parentPresenter = ParentPresenter; 1802ItemsControl parentPresenter = ParentPresenter; 1861ItemsControl parentPresenter = ParentPresenter; 2427private ItemsControl ParentPresenter 2434return itemsPresenter.TemplatedParent as ItemsControl;
System\Windows\Controls\DataGridRow.cs (2)
171public static readonly DependencyProperty ItemsPanelProperty = ItemsControl.ItemsPanelProperty.AddOwner(typeof(DataGridRow)); 1025public static readonly DependencyProperty AlternationIndexProperty = ItemsControl.AlternationIndexProperty.AddOwner(typeof(DataGridRow));
System\Windows\Controls\GridViewHeaderRowPresenter.cs (5)
1038ItemsControl oldIC = _itemsControl; // backup the old value 1252private static ItemsControl FindItemsControlThroughTemplatedParent(GridViewHeaderRowPresenter presenter) 1255ItemsControl itemsControl = null; 1259itemsControl = fe as ItemsControl; 1645private ItemsControl _itemsControl;
System\Windows\Controls\GridViewRowPresenter.cs (3)
445ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(_viewItem) as ItemsControl;
System\Windows\Controls\GroupItem.cs (8)
55ItemsControl itemsControl = ParentItemsControl; 70ItemsControl itemsControl = groupItem.ParentItemsControl; 143internal void PrepareItemContainer(object item, ItemsControl parentItemsControl) 227internal void ClearItemContainer(object item, ItemsControl parentItemsControl) 361private ItemsControl ParentItemsControl 369ItemsControl parentItemsControl = parent as ItemsControl; 387DependencyObject owner = ItemsControl.GetItemsOwnerInternal(parentPanel);
System\Windows\Controls\HeaderedItemsControl.cs (2)
259internal void PrepareHeaderedItemsControl(object item, ItemsControl parentItemsControl) 399private void PrepareHierarchy(object item, ItemsControl parentItemsControl)
System\Windows\Controls\ItemCollection.cs (6)
31/// A <seealso cref="System.Windows.Controls.ItemsControl"/> uses the data 227ModelParent.SetValue(ItemsControl.HasItemsPropertyKey, BooleanBoxes.TrueBox); 250ModelParent.ClearValue(ItemsControl.HasItemsPropertyKey); 369ModelParent.SetValue(ItemsControl.HasItemsPropertyKey, BooleanBoxes.TrueBox); 389ModelParent.ClearValue(ItemsControl.HasItemsPropertyKey); 412ModelParent.ClearValue(ItemsControl.HasItemsPropertyKey);
System\Windows\Controls\ItemContainerGenerator.cs (12)
591static (state, o, d) => ItemsControl.EqualsEx(o, state), item, 930Debug.Assert(item == null || ItemsControl.EqualsEx(item, target), 1027if (!ItemsControl.EqualsEx(genItem, actualItem)) 1201ItemsControl.ClearAlternationIndex(((RealizedItemBlock)block).ContainerAt(offset)); 1844index = (block == _itemMap) ? -1 : ItemsControl.GetAlternationIndex(rib.ContainerAt(offset)); 1866ItemsControl.SetAlternationIndex(rib.ContainerAt(offset), index); 1883index = (block == _itemMap) ? 1 : ItemsControl.GetAlternationIndex(rib.ContainerAt(offset)); 1905ItemsControl.SetAlternationIndex(rib.ContainerAt(offset), index); 2205Debug.Assert(ItemsControl.EqualsEx(rib.ItemAt(rib.ContainerCount - 1), 2219ItemsControl.EqualsEx(rib.ItemAt(0), 2369Debug.Assert(ItemsControl.EqualsEx(item, ItemsInternal[index]), "Event contains the wrong index"); 3050if (ItemsControl.EqualsEx(_entry[k].Item, item))
System\Windows\Controls\ItemContainerTemplateSelector.cs (2)
16public virtual DataTemplate SelectTemplate(object item, ItemsControl parentItemsControl) 24public override DataTemplate SelectTemplate(object item, ItemsControl parentItemsControl)
System\Windows\Controls\ItemsControl.cs (77)
54DefaultStyleKeyProperty.OverrideMetadata(typeof(ItemsControl), new FrameworkPropertyMetadata(typeof(ItemsControl))); 55_dType = DependencyObjectType.FromSystemTypeInternal(typeof(ItemsControl)); 56EventManager.RegisterClassHandler(typeof(ItemsControl), Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGotFocus)); 57VirtualizingStackPanel.ScrollUnitProperty.OverrideMetadata(typeof(ItemsControl), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnScrollingModeChanged), new CoerceValueCallback(CoerceScrollingMode))); 58VirtualizingPanel.CacheLengthProperty.OverrideMetadata(typeof(ItemsControl), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnCacheSizeChanged))); 59VirtualizingPanel.CacheLengthUnitProperty.OverrideMetadata(typeof(ItemsControl), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnCacheSizeChanged), new CoerceValueCallback(CoerceVirtualizationCacheLengthUnit))); 74if (((ItemsControl)d).IsGrouping && baseValueSource == BaseValueSource.Default) 96if ( !((ItemsControl)d).IsGrouping && !(d is TreeView) && baseValueSource == BaseValueSource.Default ) 176= DependencyProperty.Register("ItemsSource", typeof(IEnumerable), typeof(ItemsControl), 182ItemsControl ic = (ItemsControl) d; 332typeof(ItemsControl), 362typeof(ItemsControl), 384ItemsControl ctrl = (ItemsControl) d; 449typeof(ItemsControl), 471((ItemsControl) d).OnItemTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 497typeof(ItemsControl), 524((ItemsControl)d).OnItemTemplateSelectorChanged((DataTemplateSelector) e.OldValue, (DataTemplateSelector) e.NewValue); 552typeof(ItemsControl), 575ItemsControl ctrl = (ItemsControl)d; 601typeof(ItemsControl), 625ItemsControl ctrl = (ItemsControl)d; 673typeof(ItemsControl), 696((ItemsControl) d).OnItemContainerStyleChanged((Style) e.OldValue, (Style) e.NewValue); 722typeof(ItemsControl), 749((ItemsControl) d).OnItemContainerStyleSelectorChanged((StyleSelector) e.OldValue, (StyleSelector) e.NewValue); 774public static ItemsControl GetItemsOwner(DependencyObject element) 776ItemsControl container = null; 792container = panel.TemplatedParent as ItemsControl; 801ItemsControl temp; 812internal static DependencyObject GetItemsOwnerInternal(DependencyObject element, out ItemsControl itemsControl) 833itemsControl = container as ItemsControl; 847= DependencyProperty.Register("ItemsPanel", typeof(ItemsPanelTemplate), typeof(ItemsControl), 877((ItemsControl) d).OnItemsPanelChanged((ItemsPanelTemplate) e.OldValue, (ItemsPanelTemplate) e.NewValue); 892DependencyProperty.RegisterReadOnly("IsGrouping", typeof(bool), typeof(ItemsControl), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnIsGroupingChanged))); 914((ItemsControl)d).OnIsGroupingChanged(e); 963= DependencyProperty.Register("GroupStyleSelector", typeof(GroupStyleSelector), typeof(ItemsControl), 986((ItemsControl) d).OnGroupStyleSelectorChanged((GroupStyleSelector) e.OldValue, (GroupStyleSelector) e.NewValue); 1008typeof(ItemsControl), 1039ItemsControl ctrl = (ItemsControl) d; 1061typeof(ItemsControl), 1105typeof(ItemsControl), 1125typeof(ItemsControl), 1144public static ItemsControl ItemsControlFromItemContainer(DependencyObject container) 1151ItemsControl ic = LogicalTreeHelper.GetParent(ui) as ItemsControl; 1165return ItemsControl.GetItemsOwner(ui); 1174public static DependencyObject ContainerFromElement(ItemsControl itemsControl, DependencyObject element) 1212private static bool IsContainerForItemsControl(DependencyObject element, ItemsControl itemsControl) 1424ItemsControl ic = ItemsControlFromItemContainer(container); 1572ItemsControl ic; 1591else if ((ic = element as ItemsControl) != null) 1608ItemsControl ic; 1627else if ((ic = element as ItemsControl) != null) 1713internal void PrepareItemsControl(object item, ItemsControl parentItemsControl) 2121ItemsControl itemsControl = null; 2314ItemsControl itemsControl = GetEncapsulatingItemsControl(firstElement); 2380ItemsControl itemsControl = GetEncapsulatingItemsControl(firstElement); 2446ItemsControl itemsControl = GetEncapsulatingItemsControl(lastElement); 2474ItemsControl itemsControl = fe as ItemsControl; 3165ItemsControl itemsControl = (ItemsControl)sender; 3382private static ItemsControl GetEncapsulatingItemsControl(FrameworkElement element) 3386ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(element); 3398ItemsControl itemsControl = null; 3402private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container, out ItemsControl itemsControl) 3409itemsControl = ItemsControl.ItemsControlFromItemContainer(element); 3608else if (info.IsRemoved || !ItemsControl.EqualsEx(info.Item, 3651static (state, o, d) => ItemsControl.EqualsEx(o, state.item) && !state.claimedContainers.Contains(d), 3852if (!ItemsControl.EqualsEx(this.Item, that.Item))
System\Windows\Controls\ItemsPresenter.cs (4)
85internal ItemsControl Owner 205ItemsControl owner = templatedParent as ItemsControl; 333private ItemsControl _owner;
System\Windows\Controls\ListBoxItem.cs (3)
323ItemsControl oldItemsControl = null; 335oldItemsControl = ItemsControl.GetItemsOwner(oldParent); 369return ItemsControl.ItemsControlFromItemContainer(this) as Selector;
System\Windows\Controls\MenuItem.cs (16)
355ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(menuItem); 437MenuItem parent = ItemsControl.ItemsControlFromItemContainer(this) as MenuItem; 1205ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1651MenuItem parent = ItemsControl.ItemsControlFromItemContainer(this) as MenuItem; 1671ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1802ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1979ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 2300ItemsControl owner = ItemsControl.ItemsControlFromItemContainer(this); 2303owner = VisualTreeHelper.GetParent(this) as ItemsControl; 2340ItemsControl parent = ItemsControlFromItemContainer(this);
System\Windows\Controls\Panel.cs (6)
244DependencyObject parent = ItemsControl.GetItemsOwnerInternal(this); 245ItemsControl itemsControl = parent as ItemsControl; 520bool isItemsHost = (ItemsControl.GetItemsOwnerInternal(this) != null); 570ItemsControl itemsOwner = ItemsControl.GetItemsOwner(this);
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
915_parentPresenter = ItemsControl.ItemsControlFromItemContainer(this) as DataGridColumnHeadersPresenter;
System\Windows\Controls\Primitives\DataGridRowsPresenter.cs (1)
140_owner = ItemsControl.GetItemsOwner(this) as DataGrid;
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (2)
304ItemsControl ic = ItemsControl.ItemsControlFromItemContainer(TemplatedParent);
System\Windows\Controls\Primitives\MenuBase.cs (1)
678internal static void SetSuspendingPopupAnimation(ItemsControl menu, MenuItem ignore, bool suspend)
System\Windows\Controls\Primitives\Selector.cs (2)
1864ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(o);
System\Windows\Controls\SelectedItemCollection.cs (3)
40foreach (ItemsControl.ItemInfo current in _selector._selectedItems) 221internal void Add(ItemsControl.ItemInfo info) 234internal void Remove(ItemsControl.ItemInfo info)
System\Windows\Controls\SelectionChangedEventArgs.cs (6)
47internal SelectionChangedEventArgs(List<ItemsControl.ItemInfo> unselectedInfos, List<ItemsControl.ItemInfo> selectedInfos) 94internal List<ItemsControl.ItemInfo> RemovedInfos 102internal List<ItemsControl.ItemInfo> AddedInfos 130private List<ItemsControl.ItemInfo> _addedInfos; 131private List<ItemsControl.ItemInfo> _removedInfos;
System\Windows\Controls\TabControl.cs (1)
517!ItemsControl.EqualsEx(selectedItem, ItemContainerGenerator.ItemFromContainer(tabItem)))
System\Windows\Controls\TabItem.cs (1)
504return ItemsControl.ItemsControlFromItemContainer(this) as TabControl;
System\Windows\Controls\TextSearch.cs (10)
35private TextSearch(ItemsControl itemsControl) 49internal static TextSearch EnsureInstance(ItemsControl itemsControl) 225_attachedTo.NavigateToItem(matchedItem, matchedItemIndex, new ItemsControl.ItemNavigateArgs(Keyboard.PrimaryDevice, ModifierKeys.None)); 367private static int FindMatchingPrefix(ItemsControl itemsControl, string primaryTextPath, string prefix, 496internal static MatchedTextInfo FindMatchingPrefix(ItemsControl itemsControl, string prefix) 552private static string GetPrimaryTextPath(ItemsControl itemsControl) 627internal static string GetPrimaryTextFromItem(ItemsControl itemsControl, object item) 642private static BindingExpression CreateBindingExpression(ItemsControl itemsControl, object item, string primaryTextPath) 713return EnsureInstance(d as ItemsControl); 819private ItemsControl _attachedTo;
System\Windows\Controls\ToolBar.cs (2)
384ToolBar toolBar = ItemsControl.ItemsControlFromItemContainer(element) as ToolBar; 631if (currentFocusElement != null && ItemsControl.ItemsControlFromItemContainer(currentFocusElement) == this)
System\Windows\Controls\TreeView.cs (2)
700ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(_selectedContainer);
System\Windows\Controls\TreeViewItem.cs (9)
421ItemsControl parent = ParentItemsControl; 430parent = ItemsControl.ItemsControlFromItemContainer(parent); 451internal ItemsControl ParentItemsControl 455return ItemsControl.ItemsControlFromItemContainer(this); 485ItemsControl parent = ParentItemsControl; 681ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(this); 874internal void PrepareItemContainer(object item, ItemsControl parentItemsControl) 892internal void ClearItemContainer(object item, ItemsControl parentItemsControl)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (4)
1323protected override DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner) 1613ItemsControl.ItemInfo rowInfo = owner.ItemInfoFromIndex(rowIndex); 1637ItemsControl.ItemInfo rowInfo = _owner.ItemInfoFromIndex(rowIndex); 1650protected virtual DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner)
System\Windows\Controls\VirtualizingPanel.cs (2)
341ItemsControl ic = d as ItemsControl;
System\Windows\Controls\VirtualizingStackPanel.cs (70)
743ItemsControl itemsControl; 744ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 831ItemsControl itemsControl; 832ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 1193ElementViewportPosition elementPosition = ItemsControl.GetElementViewportPosition( 1234ItemsControl itemsControl = fe as ItemsControl; 1254ItemsControl itemsControl; 1257if ((itemsControl = fe as ItemsControl) != null) 1614ItemsControl itemsControl = ItemsControl.GetItemsOwner(this); 1678private void BringContainerIntoView(ItemsControl itemsControl, int itemIndex) 1988ItemsControl itemsControl = ItemsControl.GetItemsOwner(this); 2136ItemsControl itemsControl = null; 3289ItemsControl itemsControl = null; 3730DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this); 3770ItemsControl itemsControl; 4007ItemsControl itemsControl; 4008ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 4065ItemsControl itemsControl = null; 4066DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 4118ItemsControl itemsControl = null; 4121DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(itemsHost, out itemsControl); 4136out ItemsControl itemsControl, 4152ItemsControl parentItemsControl = null; 4153DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 4161parentItemsControl = ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent(itemsControl)) as ItemsControl; 4179ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent(itemsOwner)) as IContainItemStorage; 4212ItemsControl itemsControl, 6498ItemsControl scrollingItemsControl = GetScrollingItemsControl(child); 6533private ItemsControl GetScrollingItemsControl(UIElement container) 6537ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(container); 6546parent = ItemsControl.ItemsControlFromItemContainer(parent); 6555ItemsControl parentItemsControl = parent as ItemsControl; 9005ItemsControl itemsControl) 9021ItemsControl itemsControl, 9193ItemsControl itemsControl = ItemsControl.GetItemsOwner(this); 9373ItemsControl itemsControl = null; 9374ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 9419private bool NotifyCleanupItem(int childIndex, UIElementCollection children, ItemsControl itemsControl) 9424private bool NotifyCleanupItem(UIElement child, ItemsControl itemsControl) 10978ItemsControl itemsControl; 11008ItemsControl scrollingItemsControl = ItemsControl.GetItemsOwner(this); 11085ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent((Visual)itemStorageProvider)) as IContainItemStorage; 12050ItemsControl target = o as ItemsControl; 12119ItemsControl itemsControl) 12286private WeakReference<ItemsControl> _wrIC; 12293private ScrollTracer(ItemsControl itemsControl, VirtualizingStackPanel vsp, TraceList traceList) 12295_wrIC = new WeakReference<ItemsControl>(itemsControl); 12328private void IdentifyTrace(ItemsControl ic, VirtualizingStackPanel vsp) 12379if (_wrIC.TryGetTarget(out ItemsControl ic)) 12395if (_wrIC.TryGetTarget(out ItemsControl ic)) 12473private static List<Tuple<WeakReference<ItemsControl>,TraceList>> s_TargetToTraceListMap 12474= new List<Tuple<WeakReference<ItemsControl>,TraceList>>(); 12477private static TraceList TraceListForItemsControl(ItemsControl target) 12486WeakReference<ItemsControl> wr = s_TargetToTraceListMap[i].Item1; 12487ItemsControl itemsControl; 12505private static TraceList AddToMap(ItemsControl target) 12532new Tuple<WeakReference<ItemsControl>,TraceList>( 12533new WeakReference<ItemsControl>(target), 12557WeakReference<ItemsControl> wr = s_TargetToTraceListMap[i].Item1; 12558ItemsControl unused; 13035DependencyObject parentContainer = ItemsControl.ContainerFromElement(null, vsp);
System\Windows\Data\BindingExpression.cs (4)
924if (StatusInternal == BindingStatusInternal.Inactive || !System.Windows.Controls.ItemsControl.EqualsEx(item, DataItem)) 1487bool realTransfer = !(IsInUpdate && System.Windows.Controls.ItemsControl.EqualsEx(value, Value)); 2264if (!System.Windows.Controls.ItemsControl.EqualsEx(DataItem, item)) 2392if (!System.Windows.Controls.ItemsControl.EqualsEx(DataItem, newItem))
System\Windows\Data\BindingExpressionBase.cs (3)
1106if (ItemsControl.EqualsEx(value, EffectiveTargetNullValue)) 1731!ItemsControl.EqualsEx( contextElement.GetValue(dataContextDP), 2347if (ItemsControl.EqualsEx(toRemove[j].ErrorContent, errorContent))
System\Windows\Data\BindingGroup.cs (5)
604if (_hasMultipleInheritanceContexts && property != ItemsControl.ItemBindingGroupProperty && TraceData.IsEnabled) 817!ItemsControl.EqualsEx(dataContextItem, itemReference.Target)) 1271if (ItemsControl.EqualsEx(item, list[i].Target)) 1571ItemsControl.EqualsEx(item, entry.Item)) 1908ItemsControl.EqualsEx(item, entry.Item))
System\Windows\Data\BindingListCollectionView.cs (6)
841if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 906if (index >= InternalList.Count || !System.Windows.Controls.ItemsControl.EqualsEx(item, GetItemAt(index))) 959if (System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 1076if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _editItem)) 1703else if (IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 2275if (!IsAddingNew || !System.Windows.Controls.ItemsControl.EqualsEx(_newItem, item))
System\Windows\Data\CollectionView.cs (3)
511if (System.Windows.Controls.ItemsControl.EqualsEx(CurrentItem, item) || System.Windows.Controls.ItemsControl.EqualsEx(NewItemPlaceholder, item)) 520bool isNewItem = (ecv != null && ecv.IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(item, ecv.CurrentAddItem));
System\Windows\Data\CompositeCollection.cs (1)
20/// A <seealso cref="System.Windows.Controls.ItemsControl"/> uses the data
System\Windows\Data\ListCollectionView.cs (17)
758if (!System.Windows.Controls.ItemsControl.EqualsEx(newItem, SourceList[index])) 768Debug.Assert(_newItemIndex != -2 && System.Windows.Controls.ItemsControl.EqualsEx(newItem, _newItem), "AddNew did not raise expected events"); 1019if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 1084if (index >= InternalCount || !System.Windows.Controls.ItemsControl.EqualsEx(item, GetItemAt(index))) 1156if (System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 1342if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _editItem)) 1894(IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(_newItem, newItem))); 1932System.Windows.Controls.ItemsControl.EqualsEx(ItemFrom(InternalList[localOldIndex]), oldItem)) 1985bool simpleMove = System.Windows.Controls.ItemsControl.EqualsEx(oldItem, newItem); 1994System.Windows.Controls.ItemsControl.EqualsEx(InternalList[localOldIndex], oldItem)) 2166else if (IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 2648System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 2675if (!System.Windows.Controls.ItemsControl.EqualsEx(item, ilFull[index])) 2774if (System.Windows.Controls.ItemsControl.EqualsEx(ilFull[fullIndex], ilPartial[localIndex])) 2780else if (System.Windows.Controls.ItemsControl.EqualsEx(item, ilPartial[localIndex])) 2967if (!IsAddingNew || !System.Windows.Controls.ItemsControl.EqualsEx(_newItem, item)) 3179if (System.Windows.Controls.ItemsControl.EqualsEx(item, ilFull[index]))
System\Windows\Data\MultiBindingExpression.cs (2)
952if (ItemsControl.EqualsEx(value, newValue)) 1335bool realTransfer = !(IsInUpdate && ItemsControl.EqualsEx(value, Value));
System\Windows\Input\KeyboardNavigation.cs (4)
2988ElementViewportPosition sourceElementPosition = ItemsControl.GetElementViewportPosition(viewportBoundsElement, 2989ItemsControl.TryGetTreeViewItemHeader(sourceElement) as UIElement, 3015currentRectElement = ItemsControl.TryGetTreeViewItemHeader(currElement); 3019ElementViewportPosition currentViewportPosition = ItemsControl.GetElementViewportPosition(
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
422case 329: t = () => typeof(ItemsControl); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (21)
3108Type type = typeof(System.Windows.Controls.ItemsControl); 3109DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemContainerStyleProperty; 3111this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3124Type type = typeof(System.Windows.Controls.ItemsControl); 3125DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemContainerStyleSelectorProperty; 3127this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3140Type type = typeof(System.Windows.Controls.ItemsControl); 3141DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemTemplateProperty; 3143this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3156Type type = typeof(System.Windows.Controls.ItemsControl); 3157DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemTemplateSelectorProperty; 3159this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3172Type type = typeof(System.Windows.Controls.ItemsControl); 3173DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemsPanelProperty; 3175this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3188Type type = typeof(System.Windows.Controls.ItemsControl); 3189DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemsSourceProperty; 3191this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 5259Type type = typeof(System.Windows.Controls.ItemsControl); 5261this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 5268GetDelegate = delegate (object target) { return ((System.Windows.Controls.ItemsControl)target).Items; },
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
6420typeof(System.Windows.Controls.ItemsControl),
System\Windows\Markup\KnownTypes.cs (8)
1827return System.Windows.Controls.ItemsControl.ItemContainerStyleProperty; 1829return System.Windows.Controls.ItemsControl.ItemContainerStyleSelectorProperty; 1831return System.Windows.Controls.ItemsControl.ItemTemplateProperty; 1833return System.Windows.Controls.ItemsControl.ItemTemplateSelectorProperty; 1835return System.Windows.Controls.ItemsControl.ItemsPanelProperty; 1837return System.Windows.Controls.ItemsControl.ItemsSourceProperty; 2450return (o as System.Windows.Controls.ItemsControl).Items; 5876case KnownElements.ItemsControl: t = typeof(System.Windows.Controls.ItemsControl); break;
System\Windows\StyleHelper.cs (1)
5589if (dp == ItemsControl.ItemsPanelProperty || dp == FrameworkElement.ContextMenuProperty || dp == FrameworkElement.ToolTipProperty)
System.Windows.Controls.Ribbon (110)
Microsoft\Windows\Automation\Peers\RibbonAutomationPeer.cs (1)
62ItemsControl tabHeadersItemsControl = OwningRibbon.RibbonTabHeaderItemsControl;
Microsoft\Windows\Automation\Peers\RibbonGalleryCategoryAutomationPeer.cs (2)
40ItemsControl owner = (ItemsControl)Owner;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (1)
997return (RibbonGallery)ItemsControl.GetItemsOwner(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (1)
602return (RibbonGalleryCategory)ItemsControl.GetItemsOwner(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (3)
61ItemsControl itemsControl = ParentItemsControl; 315private ItemsControl ParentItemsControl 319return TreeHelper.FindTemplatedAncestor<ItemsControl>(this);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (9)
1033ItemsControl childItemsControl = element as ItemsControl; 1037var itemTemplate = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateProperty); 1038var itemTemplateSelector = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateSelectorProperty); 1039var itemStringFormat = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemStringFormatProperty); 1040var itemContainerStyle = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleProperty); 1041var itemContainerStyleSelector = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleSelectorProperty); 1042var alternationCount = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.AlternationCountProperty); 1043var itemBindingGroup = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemBindingGroupProperty);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenuItem.cs (2)
115private ItemsControl ParentItemsControl 117get { return ItemsControl.ItemsControlFromItemContainer(this); }
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (2)
113private ItemsControl ParentItemsControl 115get { return ItemsControl.ItemsControlFromItemContainer(this); }
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
680ItemsControl matchedGalleryCategory = null;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (8)
1223internal static CollectionView GetSourceCollectionView(ItemsControl itemsControl) 2184var itemTemplate = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemTemplateProperty); 2185var itemTemplateSelector = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemTemplateSelectorProperty); 2186var itemStringFormat = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemStringFormatProperty); 2187var itemContainerStyle = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemContainerStyleProperty); 2188var itemContainerStyleSelector = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemContainerStyleSelectorProperty); 2189var alternationCount = RibbonHelper.GetValueAndValueSource(category, ItemsControl.AlternationCountProperty); 2190var itemBindingGroup = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemBindingGroupProperty);
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (2)
251ItemsControl.ItemTemplateProperty, 261ItemsControl.ItemContainerStyleProperty,
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
1762RibbonTab tab = ItemsControl.ItemsControlFromItemContainer(this) as RibbonTab;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (40)
250ItemsControl itemsControl, 251ItemsControl parentItemsControl, 275RestoreValue(itemsControl, ItemsControl.ItemTemplateProperty, itemTemplate); 283RestoreValue(itemsControl, ItemsControl.ItemTemplateSelectorProperty, itemTemplateSelector); 291RestoreValue(itemsControl, ItemsControl.ItemStringFormatProperty, itemStringFormat); 299RestoreValue(itemsControl, ItemsControl.ItemContainerStyleProperty, itemContainerStyle); 307RestoreValue(itemsControl, ItemsControl.ItemContainerStyleSelectorProperty, itemContainerStyleSelector); 317RestoreValue(itemsControl, ItemsControl.AlternationCountProperty, alternationCount); 325RestoreValue(itemsControl, ItemsControl.ItemBindingGroupProperty, itemBindingGroup); 541internal static bool NavigateToFirstItem(ItemsControl itemsControl, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 552internal static bool NavigateToLastItem(ItemsControl itemsControl, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 563internal static FrameworkElement FindContainer(ItemsControl itemsControl, int startIndex, int direction, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 589internal static bool NavigateToItem(ItemsControl parent, int itemIndex, Action<int> bringIntoViewCallback) 603internal static bool NavigateToNextMenuItemOrGallery(ItemsControl parent, int startIndex, Action<int> bringIntoViewCallback) 632internal static bool NavigateToPreviousMenuItemOrGallery(ItemsControl parent, int startIndex, Action<int> bringIntoViewCallback) 1667new PropertyAndTransferMode () { Property = ItemsControl.ItemBindingGroupProperty, Mode = TransferMode.AlwaysTransfer }, 1668new PropertyAndTransferMode () { Property = ItemsControl.ItemContainerStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1669new PropertyAndTransferMode () { Property = ItemsControl.ItemContainerStyleSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 1670new PropertyAndTransferMode () { Property = ItemsControl.ItemsPanelProperty, Mode = TransferMode.AlwaysTransfer }, 1671new PropertyAndTransferMode () { Property = ItemsControl.ItemsSourceProperty, Mode = TransferMode.AlwaysTransfer }, 1672new PropertyAndTransferMode () { Property = ItemsControl.ItemStringFormatProperty, Mode = TransferMode.AlwaysTransfer }, 1673new PropertyAndTransferMode () { Property = ItemsControl.ItemTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1674new PropertyAndTransferMode () { Property = ItemsControl.ItemTemplateSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 1675new PropertyAndTransferMode () { Property = ItemsControl.DisplayMemberPathProperty, Mode = TransferMode.AlwaysTransfer }, 1676new PropertyAndTransferMode () { Property = ItemsControl.AlternationCountProperty, Mode = TransferMode.AlwaysTransfer }, 2051else if (original is ItemsControl) 2055TransferItems((ItemsControl)original, (ItemsControl)clone); 2163TransferItems((ItemsControl)original, (ItemsControl)clone); 2197TransferItems((ItemsControl)original, (ItemsControl)clone); 2221private static void TransferItems(ItemsControl originalItemsControl, ItemsControl cloneItemsControl) 2297markupProp.PropertyDescriptor.ComponentType == typeof(ItemsControl)) 2363internal static bool CoerceIsSubmenuOpenForTopLevelItem(RibbonMenuItem menuItem, ItemsControl parentItemsControl, bool baseValue) 2382internal static void HookPopupForTopLevelMenuItem(RibbonMenuItem menuItem, ItemsControl parentItemsControl) 2430RibbonApplicationMenu applicationMenu = ItemsControl.ItemsControlFromItemContainer(menuItem) as RibbonApplicationMenu; 2470ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(menuItem);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (2)
899ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(selectionItem);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (5)
724ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1413ItemsControl parent = ItemsControlFromItemContainer(this); 1495ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(selectionItem);
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (9)
248ItemsControl childItemsControl = element as ItemsControl; 252var itemTemplate = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateProperty); 253var itemTemplateSelector = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateSelectorProperty); 254var itemStringFormat = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemStringFormatProperty); 255var itemContainerStyle = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleProperty); 256var itemContainerStyleSelector = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleSelectorProperty); 257var alternationCount = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.AlternationCountProperty); 258var itemBindingGroup = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemBindingGroupProperty);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (2)
122ItemsControl tabHeaderItemsControl = ItemsControl.ItemsControlFromItemContainer(this);
Microsoft\Windows\Controls\TextSearchInternal.cs (19)
35private TextSearchInternal(ItemsControl itemsControl) 49internal static TextSearchInternal EnsureInstance(ItemsControl itemsControl) 141ItemsControl childItemsControl = _attachedTo.ItemContainerGenerator.ContainerFromIndex(currentIndex) as ItemsControl; 340private static int FindMatchingPrefix(ItemsControl itemsControl, string primaryTextPath, 370private static int FindMatchingPrefix(ItemsControl itemsControl, string primaryTextPath, 483internal static int FindMatchingPrefix(ItemsControl itemsControl, string prefix, bool doHierarchicalSearch) 493internal static object FindMatchingPrefix(ItemsControl itemsControl, string prefix, bool doHierarchicalSearch, out ItemsControl matchedChildItemsControl) 502ItemsControl childItemsControl = itemsControl.ItemContainerGenerator.ContainerFromItem(item) as ItemsControl; 551private static string GetPrimaryTextPath(ItemsControl itemsControl, bool doHierarchicalSearch) 563ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(itemsControl); 572ItemsControl grandParentItemsControl = ItemsControl.ItemsControlFromItemContainer(parentItemsControl); 665internal static string GetPrimaryTextFromItem(ItemsControl itemsControl, object item, bool doHierarchicalSearch) 747return EnsureInstance(d as ItemsControl); 872private ItemsControl _attachedTo;