12 types derived from ItemsControl
PresentationFramework (7)
System\Windows\Controls\HeaderedItemsControl.cs (1)
25public class HeaderedItemsControl : ItemsControl
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
24public class DataGridCellsPresenter : ItemsControl
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
23public class DataGridColumnHeadersPresenter : ItemsControl
System\Windows\Controls\Primitives\MenuBase.cs (1)
21public abstract class MenuBase : ItemsControl
System\Windows\Controls\Primitives\Selector.cs (1)
27public abstract class Selector : ItemsControl
System\Windows\Controls\Primitives\StatusBar.cs (1)
21public class StatusBar : ItemsControl
System\Windows\Controls\TreeView.cs (1)
24public class TreeView : ItemsControl
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
25public class RibbonContextualTabGroupItemsControl : ItemsControl
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (1)
25public class RibbonControlGroup : ItemsControl
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
50public class RibbonGallery : ItemsControl, IWeakEventListener, IPreviewCommandSource
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
38public class RibbonQuickAccessToolBar : ItemsControl
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (1)
26public class RibbonTabHeaderItemsControl : ItemsControl
2 instantiations of ItemsControl
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
6424DefaultConstructor = delegate () { return new System.Windows.Controls.ItemsControl(); },
System\Windows\Markup\KnownTypes.cs (1)
1344case 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)
447if (ItemsControl.EqualsEx(CurrentItem, item))
MS\Internal\Data\CollectionViewGroupInternal.cs (6)
276if (System.Windows.Controls.ItemsControl.EqualsEx(item, Items[k])) 308if ((index < 0 && System.Windows.Controls.ItemsControl.EqualsEx(item, group.Items[k])) || 467if (localIndex < n && System.Windows.Controls.ItemsControl.EqualsEx(ProtectedItems[localIndex], list[fullIndex])) 642if (System.Windows.Controls.ItemsControl.EqualsEx(x, y)) 650if (System.Windows.Controls.ItemsControl.EqualsEx(x, z)) 654else if (System.Windows.Controls.ItemsControl.EqualsEx(y, z))
MS\Internal\Data\CollectionViewGroupRoot.cs (1)
152Debug.Assert(System.Windows.Controls.ItemsControl.EqualsEx(item, ProtectedItems[index]), "RemoveSpecialItem finds inconsistent data");
MS\Internal\Data\CompositeCollectionView.cs (6)
219if (ItemsControl.EqualsEx(CurrentItem, item)) 877if (ItemsControl.EqualsEx(_collection[positionX], item)) 1143if (ItemsControl.EqualsEx(CurrentItem, item)) 1172if (ItemsControl.EqualsEx(item, CurrentItem)) 1179if (ItemsControl.EqualsEx(item, item2)) 1663if (!ItemsControl.EqualsEx(CurrentItem, GetItem(CurrentPosition, out x, out y)) && !_collection.HasRepeatedCollection())
MS\Internal\Data\DifferencingCollection.cs (6)
61if (index < n && System.Windows.Controls.ItemsControl.EqualsEx(o, list[index])) 71if (index + 1 < n && System.Windows.Controls.ItemsControl.EqualsEx(o, list[index + 1])) 91if (index + 1 < n && System.Windows.Controls.ItemsControl.EqualsEx(o, list[index + 1])) 96if (System.Windows.Controls.ItemsControl.EqualsEx(target, list[index])) 125if (System.Windows.Controls.ItemsControl.EqualsEx(o, target)) 161if (System.Windows.Controls.ItemsControl.EqualsEx(target, list[index]))
MS\Internal\Data\EnumerableCollectionView.cs (4)
425if (!System.Windows.Controls.ItemsControl.EqualsEx(args.OldItems[i], _snapshot[index])) 435if (!System.Windows.Controls.ItemsControl.EqualsEx(args.OldItems[i], _snapshot[index])) 454if (!System.Windows.Controls.ItemsControl.EqualsEx(args.OldItems[i], _snapshot[oldIndex])) 468if (!System.Windows.Controls.ItemsControl.EqualsEx(args.OldItems[i], _snapshot[oldIndex]))
MS\Internal\Data\IndexedEnumerable.cs (1)
399Debug.Assert(System.Windows.Controls.ItemsControl.EqualsEx(_cachedItem, current), "EnsureCacheCurrent: _cachedItem out of sync with _enumerator.Current");
MS\Internal\Data\LiveShapingList.cs (3)
248if (x == y || System.Windows.Controls.ItemsControl.EqualsEx(x.Item, y.Item)) 322if (System.Windows.Controls.ItemsControl.EqualsEx(item, lsi.Item)) 525if (System.Windows.Controls.ItemsControl.EqualsEx(value, x.Item))
MS\Internal\Data\LiveShapingTree.cs (1)
102if (System.Windows.Controls.ItemsControl.EqualsEx(finger.Item.Item, item))
MS\Internal\Data\ObjectRef.cs (3)
491ItemsControl.EqualsEx(child.DataContext, parent.DataContext)) 513ItemsControl ic = ItemsControl.GetItemsOwner(layout);
MS\Internal\Data\PropertyPathWorker.cs (2)
412if (!ItemsControl.EqualsEx(oldValue, RawValue(k - 1))) 984if (!ItemsControl.EqualsEx(item, BindingExpression.GetReference(_arySVS[level].item))
MS\Internal\Data\RBNode.cs (1)
754if (!System.Windows.Controls.ItemsControl.EqualsEx(node.GetItemAt(j), default(T)))
MS\Internal\Data\RBTree.cs (1)
485return IndexOf(item, (x, y) => { return System.Windows.Controls.ItemsControl.EqualsEx(x, y); });
MS\Internal\Data\XmlBindingWorker.cs (2)
233ItemsControl ic; 258(ic = TargetElement as ItemsControl) != null)
MS\Internal\Helper.cs (4)
463System.Windows.Controls.ItemsControl ic = System.Windows.Controls.ItemsControl.GetItemsOwner(parent); 1060ItemsControl scrollingItemsControl, 1162ItemsControl scrollingItemsControl,
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (5)
64ItemsControl owner = (ItemsControl)Owner; 115!ItemsControl.EqualsEx(peer.Item, dataItemHeader)) 166ItemsControl owner = (ItemsControl)Owner;
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (4)
115ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(Owner); 289ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(Owner);
System\Windows\Automation\Peers\ItemAutomationPeer.cs (10)
88ItemsControl owner = (ItemsControl)(itemsControlAutomationPeer.Owner); 279ItemsControl parentItemsControl = (ItemsControl)ItemsControlAutomationPeer.Owner; 313ItemsControl parentItemsControl = (ItemsControl)ItemsControlAutomationPeer.Owner; 327internal static int GetPositionInSetFromItemsControl(ItemsControl itemsControl, object item) 342internal static int GetSizeOfSetFromItemsControl(ItemsControl itemsControl, object item) 736ItemsControl parent = itemsControlAutomationPeer.Owner as ItemsControl;
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (14)
20protected ItemsControlAutomationPeer(ItemsControl owner): base(owner) 28ItemsControl owner = (ItemsControl)Owner; 41if(Owner as ItemsControl != null) 60ItemsControl owner = (ItemsControl)Owner; 227ItemsControl owner = this.Owner as ItemsControl; 249ItemsControl owner = (ItemsControl)Owner; 413ItemsControl itemsControl = (ItemsControl)Owner; 751public RecyclableWrapper(ItemsControl itemsControl, object item) 789ItemsControl _itemsControl;
System\Windows\Automation\Peers\ItemsControlWrapperAutomationPeer.cs (1)
13public ItemsControlWrapperAutomationPeer(ItemsControl owner)
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (6)
88ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(owner); 120ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(owner); 167ItemsControl owner = (ItemsControl)Owner;
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (1)
88int itemsCount = (owner as ItemsControl).Items.Count;
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (2)
36ItemsControl itemscontrol = Owner as ItemsControl;
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (4)
38ItemsControl owner = (ItemsControl)Owner; 62ItemsControl owner = (ItemsControl)Owner;
System\Windows\Automation\Peers\TreeViewDataItemAutomationPeer.cs (2)
302ItemsControl parent = itemsControlAutomationPeer.Owner as ItemsControl;
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (2)
93object dataItem = (child as UIElement) != null ? (logicalParentAp.Owner as ItemsControl).GetItemOrContainerFromContainer(child as UIElement) : child; 371ItemsControl parent = ((TreeViewItem)Owner).ParentItemsControl;
System\Windows\Controls\DataGrid.cs (10)
2733if (index >= 0 && ItemsControl.EqualsEx(newItem, Items[index])) 2741if (index < Items.Count && ItemsControl.EqualsEx(newItem, Items[index])) 3099(ItemsControl.EqualsEx(CurrentItem, row.Item) && // rows match (the hard way) 5445ItemsControl itemsControl = ItemsControlFromItemContainer(e.OriginalSource as DependencyObject); 5636if ((e.Key == Key.Up && ItemsControl.EqualsEx(cvg.Items[0], currentInfo.Item)) || 5637(e.Key == Key.Down && ItemsControl.EqualsEx(cvg.Items[cvg.Items.Count - 1], currentInfo.Item))) 6007if (!ItemsControl.EqualsEx(CurrentCell.Item, rowInfo.Item)) 6195DataGrid focusedDataGrid = ItemsControl.ItemsControlFromItemContainer(startingRow) as DataGrid; 6748if (_editingRowInfo == null || !ItemsControl.EqualsEx(item, _editingRowInfo.Item) || 7778ItemsControl.ItemInfo info = cellInfo.ItemInfo;
System\Windows\Controls\DataGridCell.cs (3)
77internal void PrepareCell(object item, ItemsControl cellsPresenter, DataGridRow ownerRow) 1086dataGridOwner = ItemsControl.ItemsControlFromItemContainer(_owner) as DataGrid; 1127return ItemsControl.ItemsControlFromItemContainer(this) as DataGridCellsPresenter;
System\Windows\Controls\DataGridCellInfo.cs (5)
25_info = new ItemsControl.ItemInfo(item); 63internal DataGridCellInfo(ItemsControl.ItemInfo info, DataGridColumn column, DataGrid owner) 80_info = new ItemsControl.ItemInfo(item); 208internal ItemsControl.ItemInfo ItemInfo 278private ItemsControl.ItemInfo _info;
System\Windows\Controls\DataGridCellsPanel.cs (7)
882ItemsControl parentPresenter = ParentPresenter; 1051ItemsControl parentPresenter = ParentPresenter; 1786ItemsControl parentPresenter = ParentPresenter; 1810ItemsControl parentPresenter = ParentPresenter; 1869ItemsControl parentPresenter = ParentPresenter; 2435private ItemsControl ParentPresenter 2442return itemsPresenter.TemplatedParent as ItemsControl;
System\Windows\Controls\DataGridRow.cs (2)
172public static readonly DependencyProperty ItemsPanelProperty = ItemsControl.ItemsPanelProperty.AddOwner(typeof(DataGridRow)); 1047public static readonly DependencyProperty AlternationIndexProperty = ItemsControl.AlternationIndexProperty.AddOwner(typeof(DataGridRow));
System\Windows\Controls\GridViewHeaderRowPresenter.cs (5)
1042ItemsControl oldIC = _itemsControl; // backup the old value 1256private static ItemsControl FindItemsControlThroughTemplatedParent(GridViewHeaderRowPresenter presenter) 1259ItemsControl itemsControl = null; 1263itemsControl = fe as ItemsControl; 1655private ItemsControl _itemsControl;
System\Windows\Controls\GridViewRowPresenter.cs (3)
446ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(_viewItem) as ItemsControl;
System\Windows\Controls\GroupItem.cs (8)
56ItemsControl itemsControl = ParentItemsControl; 71ItemsControl itemsControl = groupItem.ParentItemsControl; 144internal void PrepareItemContainer(object item, ItemsControl parentItemsControl) 228internal void ClearItemContainer(object item, ItemsControl parentItemsControl) 365private ItemsControl ParentItemsControl 373ItemsControl parentItemsControl = parent as ItemsControl; 391DependencyObject owner = ItemsControl.GetItemsOwnerInternal(parentPanel);
System\Windows\Controls\HeaderedItemsControl.cs (2)
260internal void PrepareHeaderedItemsControl(object item, ItemsControl parentItemsControl) 400void PrepareHierarchy(object item, ItemsControl parentItemsControl)
System\Windows\Controls\ItemCollection.cs (6)
32/// A <seealso cref="System.Windows.Controls.ItemsControl"/> uses the data 228ModelParent.SetValue(ItemsControl.HasItemsPropertyKey, BooleanBoxes.TrueBox); 254ModelParent.ClearValue(ItemsControl.HasItemsPropertyKey); 373ModelParent.SetValue(ItemsControl.HasItemsPropertyKey, BooleanBoxes.TrueBox); 393ModelParent.ClearValue(ItemsControl.HasItemsPropertyKey); 416ModelParent.ClearValue(ItemsControl.HasItemsPropertyKey);
System\Windows\Controls\ItemContainerGenerator.cs (12)
592static (state, o, d) => ItemsControl.EqualsEx(o, state), item, 931Debug.Assert(item == null || ItemsControl.EqualsEx(item, target), 1028if (!ItemsControl.EqualsEx(genItem, actualItem)) 1205ItemsControl.ClearAlternationIndex(((RealizedItemBlock)block).ContainerAt(offset)); 1848index = (block == _itemMap) ? -1 : ItemsControl.GetAlternationIndex(rib.ContainerAt(offset)); 1870ItemsControl.SetAlternationIndex(rib.ContainerAt(offset), index); 1887index = (block == _itemMap) ? 1 : ItemsControl.GetAlternationIndex(rib.ContainerAt(offset)); 1909ItemsControl.SetAlternationIndex(rib.ContainerAt(offset), index); 2212Debug.Assert(ItemsControl.EqualsEx(rib.ItemAt(rib.ContainerCount - 1), 2226ItemsControl.EqualsEx(rib.ItemAt(0), 2376Debug.Assert(ItemsControl.EqualsEx(item, ItemsInternal[index]), "Event contains the wrong index"); 3057if (ItemsControl.EqualsEx(_entry[k].Item, item))
System\Windows\Controls\ItemContainerTemplateSelector.cs (2)
17public virtual DataTemplate SelectTemplate(object item, ItemsControl parentItemsControl) 25public override DataTemplate SelectTemplate(object item, ItemsControl parentItemsControl)
System\Windows\Controls\ItemsControl.cs (77)
55DefaultStyleKeyProperty.OverrideMetadata(typeof(ItemsControl), new FrameworkPropertyMetadata(typeof(ItemsControl))); 56_dType = DependencyObjectType.FromSystemTypeInternal(typeof(ItemsControl)); 57EventManager.RegisterClassHandler(typeof(ItemsControl), Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGotFocus)); 58VirtualizingStackPanel.ScrollUnitProperty.OverrideMetadata(typeof(ItemsControl), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnScrollingModeChanged), new CoerceValueCallback(CoerceScrollingMode))); 59VirtualizingPanel.CacheLengthProperty.OverrideMetadata(typeof(ItemsControl), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnCacheSizeChanged))); 60VirtualizingPanel.CacheLengthUnitProperty.OverrideMetadata(typeof(ItemsControl), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnCacheSizeChanged), new CoerceValueCallback(CoerceVirtualizationCacheLengthUnit))); 75if (((ItemsControl)d).IsGrouping && baseValueSource == BaseValueSource.Default) 97if ( !((ItemsControl)d).IsGrouping && !(d is TreeView) && baseValueSource == BaseValueSource.Default ) 177= DependencyProperty.Register("ItemsSource", typeof(IEnumerable), typeof(ItemsControl), 183ItemsControl ic = (ItemsControl) d; 333typeof(ItemsControl), 363typeof(ItemsControl), 385ItemsControl ctrl = (ItemsControl) d; 450typeof(ItemsControl), 472((ItemsControl) d).OnItemTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 501typeof(ItemsControl), 528((ItemsControl)d).OnItemTemplateSelectorChanged((DataTemplateSelector) e.OldValue, (DataTemplateSelector) e.NewValue); 556typeof(ItemsControl), 579ItemsControl ctrl = (ItemsControl)d; 605typeof(ItemsControl), 629ItemsControl ctrl = (ItemsControl)d; 677typeof(ItemsControl), 700((ItemsControl) d).OnItemContainerStyleChanged((Style) e.OldValue, (Style) e.NewValue); 729typeof(ItemsControl), 756((ItemsControl) d).OnItemContainerStyleSelectorChanged((StyleSelector) e.OldValue, (StyleSelector) e.NewValue); 781public static ItemsControl GetItemsOwner(DependencyObject element) 783ItemsControl container = null; 799container = panel.TemplatedParent as ItemsControl; 808ItemsControl temp; 819internal static DependencyObject GetItemsOwnerInternal(DependencyObject element, out ItemsControl itemsControl) 840itemsControl = container as ItemsControl; 854= DependencyProperty.Register("ItemsPanel", typeof(ItemsPanelTemplate), typeof(ItemsControl), 884((ItemsControl) d).OnItemsPanelChanged((ItemsPanelTemplate) e.OldValue, (ItemsPanelTemplate) e.NewValue); 899DependencyProperty.RegisterReadOnly("IsGrouping", typeof(bool), typeof(ItemsControl), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnIsGroupingChanged))); 921((ItemsControl)d).OnIsGroupingChanged(e); 973= DependencyProperty.Register("GroupStyleSelector", typeof(GroupStyleSelector), typeof(ItemsControl), 996((ItemsControl) d).OnGroupStyleSelectorChanged((GroupStyleSelector) e.OldValue, (GroupStyleSelector) e.NewValue); 1021typeof(ItemsControl), 1052ItemsControl ctrl = (ItemsControl) d; 1074typeof(ItemsControl), 1118typeof(ItemsControl), 1138typeof(ItemsControl), 1157public static ItemsControl ItemsControlFromItemContainer(DependencyObject container) 1164ItemsControl ic = LogicalTreeHelper.GetParent(ui) as ItemsControl; 1178return ItemsControl.GetItemsOwner(ui); 1187public static DependencyObject ContainerFromElement(ItemsControl itemsControl, DependencyObject element) 1225private static bool IsContainerForItemsControl(DependencyObject element, ItemsControl itemsControl) 1443ItemsControl ic = ItemsControlFromItemContainer(container); 1597ItemsControl ic; 1616else if ((ic = element as ItemsControl) != null) 1633ItemsControl ic; 1652else if ((ic = element as ItemsControl) != null) 1741internal void PrepareItemsControl(object item, ItemsControl parentItemsControl) 2152ItemsControl itemsControl = null; 2345ItemsControl itemsControl = GetEncapsulatingItemsControl(firstElement); 2411ItemsControl itemsControl = GetEncapsulatingItemsControl(firstElement); 2477ItemsControl itemsControl = GetEncapsulatingItemsControl(lastElement); 2505ItemsControl itemsControl = fe as ItemsControl; 3196ItemsControl itemsControl = (ItemsControl)sender; 3413private static ItemsControl GetEncapsulatingItemsControl(FrameworkElement element) 3417ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(element); 3429ItemsControl itemsControl = null; 3433private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container, out ItemsControl itemsControl) 3440itemsControl = ItemsControl.ItemsControlFromItemContainer(element); 3639else if (info.IsRemoved || !ItemsControl.EqualsEx(info.Item, 3682static (state, o, d) => ItemsControl.EqualsEx(o, state.item) && !state.claimedContainers.Contains(d), 3886if (!ItemsControl.EqualsEx(this.Item, that.Item))
System\Windows\Controls\ItemsPresenter.cs (4)
86internal ItemsControl Owner 206ItemsControl owner = templatedParent as ItemsControl; 337ItemsControl _owner;
System\Windows\Controls\ListBoxItem.cs (3)
330ItemsControl oldItemsControl = null; 342oldItemsControl = ItemsControl.GetItemsOwner(oldParent); 379return ItemsControl.ItemsControlFromItemContainer(this) as Selector;
System\Windows\Controls\MenuItem.cs (16)
356ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(menuItem); 438MenuItem parent = ItemsControl.ItemsControlFromItemContainer(this) as MenuItem; 1209ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1656MenuItem parent = ItemsControl.ItemsControlFromItemContainer(this) as MenuItem; 1676ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1807ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1987ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 2308ItemsControl owner = ItemsControl.ItemsControlFromItemContainer(this); 2311owner = VisualTreeHelper.GetParent(this) as ItemsControl; 2348ItemsControl parent = ItemsControlFromItemContainer(this);
System\Windows\Controls\Panel.cs (6)
245DependencyObject parent = ItemsControl.GetItemsOwnerInternal(this); 246ItemsControl itemsControl = parent as ItemsControl; 521bool isItemsHost = (ItemsControl.GetItemsOwnerInternal(this) != null); 571ItemsControl itemsOwner = ItemsControl.GetItemsOwner(this);
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
931_parentPresenter = ItemsControl.ItemsControlFromItemContainer(this) as DataGridColumnHeadersPresenter;
System\Windows\Controls\Primitives\DataGridRowsPresenter.cs (1)
141_owner = ItemsControl.GetItemsOwner(this) as DataGrid;
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (2)
305ItemsControl ic = ItemsControl.ItemsControlFromItemContainer(TemplatedParent);
System\Windows\Controls\Primitives\MenuBase.cs (1)
679internal static void SetSuspendingPopupAnimation(ItemsControl menu, MenuItem ignore, bool suspend)
System\Windows\Controls\Primitives\Selector.cs (2)
1866ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(o);
System\Windows\Controls\SelectedItemCollection.cs (3)
41foreach (ItemsControl.ItemInfo current in _selector._selectedItems) 222internal void Add(ItemsControl.ItemInfo info) 235internal void Remove(ItemsControl.ItemInfo info)
System\Windows\Controls\SelectionChangedEventArgs.cs (6)
48internal SelectionChangedEventArgs(List<ItemsControl.ItemInfo> unselectedInfos, List<ItemsControl.ItemInfo> selectedInfos) 95internal List<ItemsControl.ItemInfo> RemovedInfos 103internal List<ItemsControl.ItemInfo> AddedInfos 131private List<ItemsControl.ItemInfo> _addedInfos; 132private List<ItemsControl.ItemInfo> _removedInfos;
System\Windows\Controls\TabControl.cs (1)
527!ItemsControl.EqualsEx(selectedItem, ItemContainerGenerator.ItemFromContainer(tabItem)))
System\Windows\Controls\TabItem.cs (1)
508return ItemsControl.ItemsControlFromItemContainer(this) as TabControl;
System\Windows\Controls\TextSearch.cs (10)
36private TextSearch(ItemsControl itemsControl) 50internal static TextSearch EnsureInstance(ItemsControl itemsControl) 226_attachedTo.NavigateToItem(matchedItem, matchedItemIndex, new ItemsControl.ItemNavigateArgs(Keyboard.PrimaryDevice, ModifierKeys.None)); 368private static int FindMatchingPrefix(ItemsControl itemsControl, string primaryTextPath, string prefix, 497internal static MatchedTextInfo FindMatchingPrefix(ItemsControl itemsControl, string prefix) 553private static string GetPrimaryTextPath(ItemsControl itemsControl) 628internal static string GetPrimaryTextFromItem(ItemsControl itemsControl, object item) 643private static BindingExpression CreateBindingExpression(ItemsControl itemsControl, object item, string primaryTextPath) 717return EnsureInstance(d as ItemsControl); 823private ItemsControl _attachedTo;
System\Windows\Controls\ToolBar.cs (2)
385ToolBar toolBar = ItemsControl.ItemsControlFromItemContainer(element) as ToolBar; 638if (currentFocusElement != null && ItemsControl.ItemsControlFromItemContainer(currentFocusElement) == this)
System\Windows\Controls\TreeView.cs (2)
703ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(_selectedContainer);
System\Windows\Controls\TreeViewItem.cs (9)
428ItemsControl parent = ParentItemsControl; 437parent = ItemsControl.ItemsControlFromItemContainer(parent); 458internal ItemsControl ParentItemsControl 462return ItemsControl.ItemsControlFromItemContainer(this); 492ItemsControl parent = ParentItemsControl; 688ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(this); 889internal void PrepareItemContainer(object item, ItemsControl parentItemsControl) 907internal void ClearItemContainer(object item, ItemsControl parentItemsControl)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (4)
1324protected override DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner) 1614ItemsControl.ItemInfo rowInfo = owner.ItemInfoFromIndex(rowIndex); 1638ItemsControl.ItemInfo rowInfo = _owner.ItemInfoFromIndex(rowIndex); 1651protected virtual DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner)
System\Windows\Controls\VirtualizingPanel.cs (2)
342ItemsControl ic = d as ItemsControl;
System\Windows\Controls\VirtualizingStackPanel.cs (70)
744ItemsControl itemsControl; 745ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 832ItemsControl itemsControl; 833ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 1194ElementViewportPosition elementPosition = ItemsControl.GetElementViewportPosition( 1235ItemsControl itemsControl = fe as ItemsControl; 1255ItemsControl itemsControl; 1258if ((itemsControl = fe as ItemsControl) != null) 1618ItemsControl itemsControl = ItemsControl.GetItemsOwner(this); 1685private void BringContainerIntoView(ItemsControl itemsControl, int itemIndex) 1995ItemsControl itemsControl = ItemsControl.GetItemsOwner(this); 2146ItemsControl itemsControl = null; 3302ItemsControl itemsControl = null; 3743DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this); 3783ItemsControl itemsControl; 4020ItemsControl itemsControl; 4021ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 4084ItemsControl itemsControl = null; 4085DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 4137ItemsControl itemsControl = null; 4140DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(itemsHost, out itemsControl); 4155out ItemsControl itemsControl, 4171ItemsControl parentItemsControl = null; 4172DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 4180parentItemsControl = ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent(itemsControl)) as ItemsControl; 4198ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent(itemsOwner)) as IContainItemStorage; 4231ItemsControl itemsControl, 6520ItemsControl scrollingItemsControl = GetScrollingItemsControl(child); 6555private ItemsControl GetScrollingItemsControl(UIElement container) 6559ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(container); 6568parent = ItemsControl.ItemsControlFromItemContainer(parent); 6577ItemsControl parentItemsControl = parent as ItemsControl; 9027ItemsControl itemsControl) 9043ItemsControl itemsControl, 9215ItemsControl itemsControl = ItemsControl.GetItemsOwner(this); 9395ItemsControl itemsControl = null; 9396ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 9441private bool NotifyCleanupItem(int childIndex, UIElementCollection children, ItemsControl itemsControl) 9446private bool NotifyCleanupItem(UIElement child, ItemsControl itemsControl) 11003ItemsControl itemsControl; 11033ItemsControl scrollingItemsControl = ItemsControl.GetItemsOwner(this); 11110ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent((Visual)itemStorageProvider)) as IContainItemStorage; 12075ItemsControl target = o as ItemsControl; 12144ItemsControl itemsControl) 12311private WeakReference<ItemsControl> _wrIC; 12318private ScrollTracer(ItemsControl itemsControl, VirtualizingStackPanel vsp, TraceList traceList) 12320_wrIC = new WeakReference<ItemsControl>(itemsControl); 12353private void IdentifyTrace(ItemsControl ic, VirtualizingStackPanel vsp) 12404if (_wrIC.TryGetTarget(out ItemsControl ic)) 12420if (_wrIC.TryGetTarget(out ItemsControl ic)) 12498private static List<Tuple<WeakReference<ItemsControl>,TraceList>> s_TargetToTraceListMap 12499= new List<Tuple<WeakReference<ItemsControl>,TraceList>>(); 12502static TraceList TraceListForItemsControl(ItemsControl target) 12511WeakReference<ItemsControl> wr = s_TargetToTraceListMap[i].Item1; 12512ItemsControl itemsControl; 12530private static TraceList AddToMap(ItemsControl target) 12557new Tuple<WeakReference<ItemsControl>,TraceList>( 12558new WeakReference<ItemsControl>(target), 12582WeakReference<ItemsControl> wr = s_TargetToTraceListMap[i].Item1; 12583ItemsControl unused; 13060DependencyObject parentContainer = ItemsControl.ContainerFromElement(null, vsp);
System\Windows\Data\BindingExpression.cs (4)
928if (StatusInternal == BindingStatusInternal.Inactive || !System.Windows.Controls.ItemsControl.EqualsEx(item, DataItem)) 1492bool realTransfer = !(IsInUpdate && System.Windows.Controls.ItemsControl.EqualsEx(value, Value)); 2270if (!System.Windows.Controls.ItemsControl.EqualsEx(DataItem, item)) 2398if (!System.Windows.Controls.ItemsControl.EqualsEx(DataItem, newItem))
System\Windows\Data\BindingExpressionBase.cs (3)
1107if (ItemsControl.EqualsEx(value, EffectiveTargetNullValue)) 1733!ItemsControl.EqualsEx( contextElement.GetValue(dataContextDP), 2352if (ItemsControl.EqualsEx(toRemove[j].ErrorContent, errorContent))
System\Windows\Data\BindingGroup.cs (5)
611if (_hasMultipleInheritanceContexts && property != ItemsControl.ItemBindingGroupProperty && TraceData.IsEnabled) 827!ItemsControl.EqualsEx(dataContextItem, itemReference.Target)) 1284if (ItemsControl.EqualsEx(item, list[i].Target)) 1584ItemsControl.EqualsEx(item, entry.Item)) 1921ItemsControl.EqualsEx(item, entry.Item))
System\Windows\Data\BindingListCollectionView.cs (6)
851if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 916if (index >= InternalList.Count || !System.Windows.Controls.ItemsControl.EqualsEx(item, GetItemAt(index))) 969if (System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 1092if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _editItem)) 1719else if (IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 2291if (!IsAddingNew || !System.Windows.Controls.ItemsControl.EqualsEx(_newItem, item))
System\Windows\Data\CollectionView.cs (3)
515if (System.Windows.Controls.ItemsControl.EqualsEx(CurrentItem, item) || System.Windows.Controls.ItemsControl.EqualsEx(NewItemPlaceholder, item)) 524bool isNewItem = (ecv != null && ecv.IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(item, ecv.CurrentAddItem));
System\Windows\Data\CompositeCollection.cs (1)
21/// A <seealso cref="System.Windows.Controls.ItemsControl"/> uses the data
System\Windows\Data\ListCollectionView.cs (17)
759if (!System.Windows.Controls.ItemsControl.EqualsEx(newItem, SourceList[index])) 769Debug.Assert(_newItemIndex != -2 && System.Windows.Controls.ItemsControl.EqualsEx(newItem, _newItem), "AddNew did not raise expected events"); 1029if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 1094if (index >= InternalCount || !System.Windows.Controls.ItemsControl.EqualsEx(item, GetItemAt(index))) 1166if (System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 1361if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _editItem)) 1913(IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(_newItem, newItem))); 1951System.Windows.Controls.ItemsControl.EqualsEx(ItemFrom(InternalList[localOldIndex]), oldItem)) 2004bool simpleMove = System.Windows.Controls.ItemsControl.EqualsEx(oldItem, newItem); 2013System.Windows.Controls.ItemsControl.EqualsEx(InternalList[localOldIndex], oldItem)) 2185else if (IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 2667System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 2694if (!System.Windows.Controls.ItemsControl.EqualsEx(item, ilFull[index])) 2793if (System.Windows.Controls.ItemsControl.EqualsEx(ilFull[fullIndex], ilPartial[localIndex])) 2799else if (System.Windows.Controls.ItemsControl.EqualsEx(item, ilPartial[localIndex])) 2986if (!IsAddingNew || !System.Windows.Controls.ItemsControl.EqualsEx(_newItem, item)) 3198if (System.Windows.Controls.ItemsControl.EqualsEx(item, ilFull[index]))
System\Windows\Data\MultiBindingExpression.cs (2)
953if (ItemsControl.EqualsEx(value, newValue)) 1336bool realTransfer = !(IsInUpdate && ItemsControl.EqualsEx(value, Value));
System\Windows\Input\KeyboardNavigation.cs (4)
3000ElementViewportPosition sourceElementPosition = ItemsControl.GetElementViewportPosition(viewportBoundsElement, 3001ItemsControl.TryGetTreeViewItemHeader(sourceElement) as UIElement, 3027currentRectElement = ItemsControl.TryGetTreeViewItemHeader(currElement); 3031ElementViewportPosition currentViewportPosition = ItemsControl.GetElementViewportPosition(
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
423case 329: t = () => typeof(ItemsControl); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (21)
3109Type type = typeof(System.Windows.Controls.ItemsControl); 3110DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemContainerStyleProperty; 3112this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3125Type type = typeof(System.Windows.Controls.ItemsControl); 3126DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemContainerStyleSelectorProperty; 3128this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3141Type type = typeof(System.Windows.Controls.ItemsControl); 3142DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemTemplateProperty; 3144this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3157Type type = typeof(System.Windows.Controls.ItemsControl); 3158DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemTemplateSelectorProperty; 3160this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3173Type type = typeof(System.Windows.Controls.ItemsControl); 3174DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemsPanelProperty; 3176this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3189Type type = typeof(System.Windows.Controls.ItemsControl); 3190DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemsSourceProperty; 3192this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 5260Type type = typeof(System.Windows.Controls.ItemsControl); 5262this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 5269GetDelegate = delegate (object target) { return ((System.Windows.Controls.ItemsControl)target).Items; },
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
6421typeof(System.Windows.Controls.ItemsControl),
System\Windows\Markup\KnownTypes.cs (8)
1828return System.Windows.Controls.ItemsControl.ItemContainerStyleProperty; 1830return System.Windows.Controls.ItemsControl.ItemContainerStyleSelectorProperty; 1832return System.Windows.Controls.ItemsControl.ItemTemplateProperty; 1834return System.Windows.Controls.ItemsControl.ItemTemplateSelectorProperty; 1836return System.Windows.Controls.ItemsControl.ItemsPanelProperty; 1838return System.Windows.Controls.ItemsControl.ItemsSourceProperty; 2451return (o as System.Windows.Controls.ItemsControl).Items; 5877case KnownElements.ItemsControl: t = typeof(System.Windows.Controls.ItemsControl); break;
System\Windows\StyleHelper.cs (1)
5600if (dp == ItemsControl.ItemsPanelProperty || dp == FrameworkElement.ContextMenuProperty || dp == FrameworkElement.ToolTipProperty)
System.Windows.Controls.Ribbon (110)
Microsoft\Windows\Automation\Peers\RibbonAutomationPeer.cs (1)
63ItemsControl tabHeadersItemsControl = OwningRibbon.RibbonTabHeaderItemsControl;
Microsoft\Windows\Automation\Peers\RibbonGalleryCategoryAutomationPeer.cs (2)
41ItemsControl owner = (ItemsControl)Owner;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (1)
1001return (RibbonGallery)ItemsControl.GetItemsOwner(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (1)
603return (RibbonGalleryCategory)ItemsControl.GetItemsOwner(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (3)
62ItemsControl itemsControl = ParentItemsControl; 316private ItemsControl ParentItemsControl 320return TreeHelper.FindTemplatedAncestor<ItemsControl>(this);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (9)
1040ItemsControl childItemsControl = element as ItemsControl; 1044var itemTemplate = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateProperty); 1045var itemTemplateSelector = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateSelectorProperty); 1046var itemStringFormat = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemStringFormatProperty); 1047var itemContainerStyle = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleProperty); 1048var itemContainerStyleSelector = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleSelectorProperty); 1049var alternationCount = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.AlternationCountProperty); 1050var itemBindingGroup = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemBindingGroupProperty);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenuItem.cs (2)
116private ItemsControl ParentItemsControl 118get { return ItemsControl.ItemsControlFromItemContainer(this); }
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (2)
114private ItemsControl ParentItemsControl 116get { return ItemsControl.ItemsControlFromItemContainer(this); }
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
682ItemsControl matchedGalleryCategory = null;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (8)
1224internal static CollectionView GetSourceCollectionView(ItemsControl itemsControl) 2185var itemTemplate = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemTemplateProperty); 2186var itemTemplateSelector = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemTemplateSelectorProperty); 2187var itemStringFormat = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemStringFormatProperty); 2188var itemContainerStyle = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemContainerStyleProperty); 2189var itemContainerStyleSelector = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemContainerStyleSelectorProperty); 2190var alternationCount = RibbonHelper.GetValueAndValueSource(category, ItemsControl.AlternationCountProperty); 2191var itemBindingGroup = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemBindingGroupProperty);
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (2)
255ItemsControl.ItemTemplateProperty, 265ItemsControl.ItemContainerStyleProperty,
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
1772RibbonTab tab = ItemsControl.ItemsControlFromItemContainer(this) as RibbonTab;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (40)
251ItemsControl itemsControl, 252ItemsControl parentItemsControl, 276RestoreValue(itemsControl, ItemsControl.ItemTemplateProperty, itemTemplate); 284RestoreValue(itemsControl, ItemsControl.ItemTemplateSelectorProperty, itemTemplateSelector); 292RestoreValue(itemsControl, ItemsControl.ItemStringFormatProperty, itemStringFormat); 300RestoreValue(itemsControl, ItemsControl.ItemContainerStyleProperty, itemContainerStyle); 308RestoreValue(itemsControl, ItemsControl.ItemContainerStyleSelectorProperty, itemContainerStyleSelector); 318RestoreValue(itemsControl, ItemsControl.AlternationCountProperty, alternationCount); 326RestoreValue(itemsControl, ItemsControl.ItemBindingGroupProperty, itemBindingGroup); 542internal static bool NavigateToFirstItem(ItemsControl itemsControl, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 553internal static bool NavigateToLastItem(ItemsControl itemsControl, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 564internal static FrameworkElement FindContainer(ItemsControl itemsControl, int startIndex, int direction, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 590internal static bool NavigateToItem(ItemsControl parent, int itemIndex, Action<int> bringIntoViewCallback) 604internal static bool NavigateToNextMenuItemOrGallery(ItemsControl parent, int startIndex, Action<int> bringIntoViewCallback) 633internal static bool NavigateToPreviousMenuItemOrGallery(ItemsControl parent, int startIndex, Action<int> bringIntoViewCallback) 1692new PropertyAndTransferMode () { Property = ItemsControl.ItemBindingGroupProperty, Mode = TransferMode.AlwaysTransfer }, 1693new PropertyAndTransferMode () { Property = ItemsControl.ItemContainerStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1694new PropertyAndTransferMode () { Property = ItemsControl.ItemContainerStyleSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 1695new PropertyAndTransferMode () { Property = ItemsControl.ItemsPanelProperty, Mode = TransferMode.AlwaysTransfer }, 1696new PropertyAndTransferMode () { Property = ItemsControl.ItemsSourceProperty, Mode = TransferMode.AlwaysTransfer }, 1697new PropertyAndTransferMode () { Property = ItemsControl.ItemStringFormatProperty, Mode = TransferMode.AlwaysTransfer }, 1698new PropertyAndTransferMode () { Property = ItemsControl.ItemTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1699new PropertyAndTransferMode () { Property = ItemsControl.ItemTemplateSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 1700new PropertyAndTransferMode () { Property = ItemsControl.DisplayMemberPathProperty, Mode = TransferMode.AlwaysTransfer }, 1701new PropertyAndTransferMode () { Property = ItemsControl.AlternationCountProperty, Mode = TransferMode.AlwaysTransfer }, 2076else if (original is ItemsControl) 2080TransferItems((ItemsControl)original, (ItemsControl)clone); 2188TransferItems((ItemsControl)original, (ItemsControl)clone); 2222TransferItems((ItemsControl)original, (ItemsControl)clone); 2246private static void TransferItems(ItemsControl originalItemsControl, ItemsControl cloneItemsControl) 2322markupProp.PropertyDescriptor.ComponentType == typeof(ItemsControl)) 2388internal static bool CoerceIsSubmenuOpenForTopLevelItem(RibbonMenuItem menuItem, ItemsControl parentItemsControl, bool baseValue) 2407internal static void HookPopupForTopLevelMenuItem(RibbonMenuItem menuItem, ItemsControl parentItemsControl) 2455RibbonApplicationMenu applicationMenu = ItemsControl.ItemsControlFromItemContainer(menuItem) as RibbonApplicationMenu; 2495ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(menuItem);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (2)
900ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(selectionItem);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (5)
725ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1426ItemsControl parent = ItemsControlFromItemContainer(this); 1508ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(selectionItem);
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (9)
249ItemsControl childItemsControl = element as ItemsControl; 253var itemTemplate = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateProperty); 254var itemTemplateSelector = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateSelectorProperty); 255var itemStringFormat = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemStringFormatProperty); 256var itemContainerStyle = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleProperty); 257var itemContainerStyleSelector = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleSelectorProperty); 258var alternationCount = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.AlternationCountProperty); 259var itemBindingGroup = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemBindingGroupProperty);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (2)
123ItemsControl tabHeaderItemsControl = ItemsControl.ItemsControlFromItemContainer(this);
Microsoft\Windows\Controls\TextSearchInternal.cs (19)
36private TextSearchInternal(ItemsControl itemsControl) 50internal static TextSearchInternal EnsureInstance(ItemsControl itemsControl) 142ItemsControl childItemsControl = _attachedTo.ItemContainerGenerator.ContainerFromIndex(currentIndex) as ItemsControl; 341private static int FindMatchingPrefix(ItemsControl itemsControl, string primaryTextPath, 371private static int FindMatchingPrefix(ItemsControl itemsControl, string primaryTextPath, 484internal static int FindMatchingPrefix(ItemsControl itemsControl, string prefix, bool doHierarchicalSearch) 494internal static object FindMatchingPrefix(ItemsControl itemsControl, string prefix, bool doHierarchicalSearch, out ItemsControl matchedChildItemsControl) 503ItemsControl childItemsControl = itemsControl.ItemContainerGenerator.ContainerFromItem(item) as ItemsControl; 552private static string GetPrimaryTextPath(ItemsControl itemsControl, bool doHierarchicalSearch) 564ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(itemsControl); 573ItemsControl grandParentItemsControl = ItemsControl.ItemsControlFromItemContainer(parentItemsControl); 666internal static string GetPrimaryTextFromItem(ItemsControl itemsControl, object item, bool doHierarchicalSearch) 751return EnsureInstance(d as ItemsControl); 878private ItemsControl _attachedTo;