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)
270if (System.Windows.Controls.ItemsControl.EqualsEx(item, Items[k])) 302if ((index < 0 && System.Windows.Controls.ItemsControl.EqualsEx(item, group.Items[k])) || 458if (localIndex < n && System.Windows.Controls.ItemsControl.EqualsEx(ProtectedItems[localIndex], list[fullIndex])) 632if (System.Windows.Controls.ItemsControl.EqualsEx(x, y)) 640if (System.Windows.Controls.ItemsControl.EqualsEx(x, z)) 644else 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)) 871if (ItemsControl.EqualsEx(_collection[positionX], item)) 1137if (ItemsControl.EqualsEx(CurrentItem, item)) 1166if (ItemsControl.EqualsEx(item, CurrentItem)) 1173if (ItemsControl.EqualsEx(item, item2)) 1653if (!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)
396Debug.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))) 982if (!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); 1054ItemsControl scrollingItemsControl, 1156ItemsControl 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); 286ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(Owner);
System\Windows\Automation\Peers\ItemAutomationPeer.cs (10)
88ItemsControl owner = (ItemsControl)(itemsControlAutomationPeer.Owner); 276ItemsControl parentItemsControl = (ItemsControl)ItemsControlAutomationPeer.Owner; 310ItemsControl parentItemsControl = (ItemsControl)ItemsControlAutomationPeer.Owner; 324internal static int GetPositionInSetFromItemsControl(ItemsControl itemsControl, object item) 339internal static int GetSizeOfSetFromItemsControl(ItemsControl itemsControl, object item) 733ItemsControl 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; 221ItemsControl owner = this.Owner as ItemsControl; 243ItemsControl owner = (ItemsControl)Owner; 404ItemsControl itemsControl = (ItemsControl)Owner; 740public RecyclableWrapper(ItemsControl itemsControl, object item) 778ItemsControl _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)
299ItemsControl 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; 368ItemsControl parent = ((TreeViewItem)Owner).ParentItemsControl;
System\Windows\Controls\DataGrid.cs (10)
2712if (index >= 0 && ItemsControl.EqualsEx(newItem, Items[index])) 2720if (index < Items.Count && ItemsControl.EqualsEx(newItem, Items[index])) 3075(ItemsControl.EqualsEx(CurrentItem, row.Item) && // rows match (the hard way) 5403ItemsControl itemsControl = ItemsControlFromItemContainer(e.OriginalSource as DependencyObject); 5594if ((e.Key == Key.Up && ItemsControl.EqualsEx(cvg.Items[0], currentInfo.Item)) || 5595(e.Key == Key.Down && ItemsControl.EqualsEx(cvg.Items[cvg.Items.Count - 1], currentInfo.Item))) 5965if (!ItemsControl.EqualsEx(CurrentCell.Item, rowInfo.Item)) 6150DataGrid focusedDataGrid = ItemsControl.ItemsControlFromItemContainer(startingRow) as DataGrid; 6703if (_editingRowInfo == null || !ItemsControl.EqualsEx(item, _editingRowInfo.Item) || 7727ItemsControl.ItemInfo info = cellInfo.ItemInfo;
System\Windows\Controls\DataGridCell.cs (3)
77internal void PrepareCell(object item, ItemsControl cellsPresenter, DataGridRow ownerRow) 1068dataGridOwner = ItemsControl.ItemsControlFromItemContainer(_owner) as DataGrid; 1109return 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)
881ItemsControl parentPresenter = ParentPresenter; 1050ItemsControl parentPresenter = ParentPresenter; 1779ItemsControl parentPresenter = ParentPresenter; 1803ItemsControl parentPresenter = ParentPresenter; 1862ItemsControl parentPresenter = ParentPresenter; 2428private ItemsControl ParentPresenter 2435return itemsPresenter.TemplatedParent as ItemsControl;
System\Windows\Controls\DataGridRow.cs (2)
172public static readonly DependencyProperty ItemsPanelProperty = ItemsControl.ItemsPanelProperty.AddOwner(typeof(DataGridRow)); 1026public static readonly DependencyProperty AlternationIndexProperty = ItemsControl.AlternationIndexProperty.AddOwner(typeof(DataGridRow));
System\Windows\Controls\GridViewHeaderRowPresenter.cs (5)
1039ItemsControl oldIC = _itemsControl; // backup the old value 1253private static ItemsControl FindItemsControlThroughTemplatedParent(GridViewHeaderRowPresenter presenter) 1256ItemsControl itemsControl = null; 1260itemsControl = fe as ItemsControl; 1646private 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) 362private ItemsControl ParentItemsControl 370ItemsControl parentItemsControl = parent as ItemsControl; 388DependencyObject 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); 251ModelParent.ClearValue(ItemsControl.HasItemsPropertyKey); 370ModelParent.SetValue(ItemsControl.HasItemsPropertyKey, BooleanBoxes.TrueBox); 390ModelParent.ClearValue(ItemsControl.HasItemsPropertyKey); 413ModelParent.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)) 1202ItemsControl.ClearAlternationIndex(((RealizedItemBlock)block).ContainerAt(offset)); 1845index = (block == _itemMap) ? -1 : ItemsControl.GetAlternationIndex(rib.ContainerAt(offset)); 1867ItemsControl.SetAlternationIndex(rib.ContainerAt(offset), index); 1884index = (block == _itemMap) ? 1 : ItemsControl.GetAlternationIndex(rib.ContainerAt(offset)); 1906ItemsControl.SetAlternationIndex(rib.ContainerAt(offset), index); 2208Debug.Assert(ItemsControl.EqualsEx(rib.ItemAt(rib.ContainerCount - 1), 2222ItemsControl.EqualsEx(rib.ItemAt(0), 2372Debug.Assert(ItemsControl.EqualsEx(item, ItemsInternal[index]), "Event contains the wrong index"); 3053if (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); 498typeof(ItemsControl), 525((ItemsControl)d).OnItemTemplateSelectorChanged((DataTemplateSelector) e.OldValue, (DataTemplateSelector) e.NewValue); 553typeof(ItemsControl), 576ItemsControl ctrl = (ItemsControl)d; 602typeof(ItemsControl), 626ItemsControl ctrl = (ItemsControl)d; 674typeof(ItemsControl), 697((ItemsControl) d).OnItemContainerStyleChanged((Style) e.OldValue, (Style) e.NewValue); 723typeof(ItemsControl), 750((ItemsControl) d).OnItemContainerStyleSelectorChanged((StyleSelector) e.OldValue, (StyleSelector) e.NewValue); 775public static ItemsControl GetItemsOwner(DependencyObject element) 777ItemsControl container = null; 793container = panel.TemplatedParent as ItemsControl; 802ItemsControl temp; 813internal static DependencyObject GetItemsOwnerInternal(DependencyObject element, out ItemsControl itemsControl) 834itemsControl = container as ItemsControl; 848= DependencyProperty.Register("ItemsPanel", typeof(ItemsPanelTemplate), typeof(ItemsControl), 878((ItemsControl) d).OnItemsPanelChanged((ItemsPanelTemplate) e.OldValue, (ItemsPanelTemplate) e.NewValue); 893DependencyProperty.RegisterReadOnly("IsGrouping", typeof(bool), typeof(ItemsControl), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnIsGroupingChanged))); 915((ItemsControl)d).OnIsGroupingChanged(e); 964= DependencyProperty.Register("GroupStyleSelector", typeof(GroupStyleSelector), typeof(ItemsControl), 987((ItemsControl) d).OnGroupStyleSelectorChanged((GroupStyleSelector) e.OldValue, (GroupStyleSelector) e.NewValue); 1009typeof(ItemsControl), 1040ItemsControl ctrl = (ItemsControl) d; 1062typeof(ItemsControl), 1106typeof(ItemsControl), 1126typeof(ItemsControl), 1145public static ItemsControl ItemsControlFromItemContainer(DependencyObject container) 1152ItemsControl ic = LogicalTreeHelper.GetParent(ui) as ItemsControl; 1166return ItemsControl.GetItemsOwner(ui); 1175public static DependencyObject ContainerFromElement(ItemsControl itemsControl, DependencyObject element) 1213private static bool IsContainerForItemsControl(DependencyObject element, ItemsControl itemsControl) 1425ItemsControl ic = ItemsControlFromItemContainer(container); 1573ItemsControl ic; 1592else if ((ic = element as ItemsControl) != null) 1609ItemsControl ic; 1628else if ((ic = element as ItemsControl) != null) 1714internal void PrepareItemsControl(object item, ItemsControl parentItemsControl) 2122ItemsControl itemsControl = null; 2315ItemsControl itemsControl = GetEncapsulatingItemsControl(firstElement); 2381ItemsControl itemsControl = GetEncapsulatingItemsControl(firstElement); 2447ItemsControl itemsControl = GetEncapsulatingItemsControl(lastElement); 2475ItemsControl itemsControl = fe as ItemsControl; 3166ItemsControl itemsControl = (ItemsControl)sender; 3383private static ItemsControl GetEncapsulatingItemsControl(FrameworkElement element) 3387ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(element); 3399ItemsControl itemsControl = null; 3403private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container, out ItemsControl itemsControl) 3410itemsControl = ItemsControl.ItemsControlFromItemContainer(element); 3609else if (info.IsRemoved || !ItemsControl.EqualsEx(info.Item, 3652static (state, o, d) => ItemsControl.EqualsEx(o, state.item) && !state.claimedContainers.Contains(d), 3853if (!ItemsControl.EqualsEx(this.Item, that.Item))
System\Windows\Controls\ItemsPresenter.cs (4)
86internal ItemsControl Owner 206ItemsControl owner = templatedParent as ItemsControl; 334ItemsControl _owner;
System\Windows\Controls\ListBoxItem.cs (3)
324ItemsControl oldItemsControl = null; 336oldItemsControl = ItemsControl.GetItemsOwner(oldParent); 370return ItemsControl.ItemsControlFromItemContainer(this) as Selector;
System\Windows\Controls\MenuItem.cs (16)
356ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(menuItem); 438MenuItem parent = ItemsControl.ItemsControlFromItemContainer(this) as MenuItem; 1206ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1652MenuItem parent = ItemsControl.ItemsControlFromItemContainer(this) as MenuItem; 1672ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1803ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1980ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 2301ItemsControl owner = ItemsControl.ItemsControlFromItemContainer(this); 2304owner = VisualTreeHelper.GetParent(this) as ItemsControl; 2341ItemsControl 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)
916_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)
1865ItemsControl 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)
518!ItemsControl.EqualsEx(selectedItem, ItemContainerGenerator.ItemFromContainer(tabItem)))
System\Windows\Controls\TabItem.cs (1)
505return 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) 714return EnsureInstance(d as ItemsControl); 820private ItemsControl _attachedTo;
System\Windows\Controls\ToolBar.cs (2)
385ToolBar toolBar = ItemsControl.ItemsControlFromItemContainer(element) as ToolBar; 632if (currentFocusElement != null && ItemsControl.ItemsControlFromItemContainer(currentFocusElement) == this)
System\Windows\Controls\TreeView.cs (2)
701ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(_selectedContainer);
System\Windows\Controls\TreeViewItem.cs (9)
422ItemsControl parent = ParentItemsControl; 431parent = ItemsControl.ItemsControlFromItemContainer(parent); 452internal ItemsControl ParentItemsControl 456return ItemsControl.ItemsControlFromItemContainer(this); 486ItemsControl parent = ParentItemsControl; 682ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(this); 875internal void PrepareItemContainer(object item, ItemsControl parentItemsControl) 893internal 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) 1615ItemsControl itemsControl = ItemsControl.GetItemsOwner(this); 1679private void BringContainerIntoView(ItemsControl itemsControl, int itemIndex) 1989ItemsControl itemsControl = ItemsControl.GetItemsOwner(this); 2137ItemsControl itemsControl = null; 3290ItemsControl itemsControl = null; 3731DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this); 3771ItemsControl itemsControl; 4008ItemsControl itemsControl; 4009ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 4066ItemsControl itemsControl = null; 4067DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 4119ItemsControl itemsControl = null; 4122DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(itemsHost, out itemsControl); 4137out ItemsControl itemsControl, 4153ItemsControl parentItemsControl = null; 4154DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 4162parentItemsControl = ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent(itemsControl)) as ItemsControl; 4180ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent(itemsOwner)) as IContainItemStorage; 4213ItemsControl itemsControl, 6499ItemsControl scrollingItemsControl = GetScrollingItemsControl(child); 6534private ItemsControl GetScrollingItemsControl(UIElement container) 6538ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(container); 6547parent = ItemsControl.ItemsControlFromItemContainer(parent); 6556ItemsControl parentItemsControl = parent as ItemsControl; 9006ItemsControl itemsControl) 9022ItemsControl itemsControl, 9194ItemsControl itemsControl = ItemsControl.GetItemsOwner(this); 9374ItemsControl itemsControl = null; 9375ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 9420private bool NotifyCleanupItem(int childIndex, UIElementCollection children, ItemsControl itemsControl) 9425private bool NotifyCleanupItem(UIElement child, ItemsControl itemsControl) 10979ItemsControl itemsControl; 11009ItemsControl scrollingItemsControl = ItemsControl.GetItemsOwner(this); 11086ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent((Visual)itemStorageProvider)) as IContainItemStorage; 12051ItemsControl target = o as ItemsControl; 12120ItemsControl itemsControl) 12287private WeakReference<ItemsControl> _wrIC; 12294private ScrollTracer(ItemsControl itemsControl, VirtualizingStackPanel vsp, TraceList traceList) 12296_wrIC = new WeakReference<ItemsControl>(itemsControl); 12329private void IdentifyTrace(ItemsControl ic, VirtualizingStackPanel vsp) 12380if (_wrIC.TryGetTarget(out ItemsControl ic)) 12396if (_wrIC.TryGetTarget(out ItemsControl ic)) 12474private static List<Tuple<WeakReference<ItemsControl>,TraceList>> s_TargetToTraceListMap 12475= new List<Tuple<WeakReference<ItemsControl>,TraceList>>(); 12478static TraceList TraceListForItemsControl(ItemsControl target) 12487WeakReference<ItemsControl> wr = s_TargetToTraceListMap[i].Item1; 12488ItemsControl itemsControl; 12506private static TraceList AddToMap(ItemsControl target) 12533new Tuple<WeakReference<ItemsControl>,TraceList>( 12534new WeakReference<ItemsControl>(target), 12558WeakReference<ItemsControl> wr = s_TargetToTraceListMap[i].Item1; 12559ItemsControl unused; 13036DependencyObject parentContainer = ItemsControl.ContainerFromElement(null, vsp);
System\Windows\Data\BindingExpression.cs (4)
925if (StatusInternal == BindingStatusInternal.Inactive || !System.Windows.Controls.ItemsControl.EqualsEx(item, DataItem)) 1488bool realTransfer = !(IsInUpdate && System.Windows.Controls.ItemsControl.EqualsEx(value, Value)); 2266if (!System.Windows.Controls.ItemsControl.EqualsEx(DataItem, item)) 2394if (!System.Windows.Controls.ItemsControl.EqualsEx(DataItem, newItem))
System\Windows\Data\BindingExpressionBase.cs (3)
1107if (ItemsControl.EqualsEx(value, EffectiveTargetNullValue)) 1732!ItemsControl.EqualsEx( contextElement.GetValue(dataContextDP), 2348if (ItemsControl.EqualsEx(toRemove[j].ErrorContent, errorContent))
System\Windows\Data\BindingGroup.cs (5)
605if (_hasMultipleInheritanceContexts && property != ItemsControl.ItemBindingGroupProperty && TraceData.IsEnabled) 818!ItemsControl.EqualsEx(dataContextItem, itemReference.Target)) 1272if (ItemsControl.EqualsEx(item, list[i].Target)) 1572ItemsControl.EqualsEx(item, entry.Item)) 1909ItemsControl.EqualsEx(item, entry.Item))
System\Windows\Data\BindingListCollectionView.cs (6)
842if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 907if (index >= InternalList.Count || !System.Windows.Controls.ItemsControl.EqualsEx(item, GetItemAt(index))) 960if (System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 1077if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _editItem)) 1704else if (IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 2276if (!IsAddingNew || !System.Windows.Controls.ItemsControl.EqualsEx(_newItem, item))
System\Windows\Data\CollectionView.cs (3)
512if (System.Windows.Controls.ItemsControl.EqualsEx(CurrentItem, item) || System.Windows.Controls.ItemsControl.EqualsEx(NewItemPlaceholder, item)) 521bool 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"); 1020if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 1085if (index >= InternalCount || !System.Windows.Controls.ItemsControl.EqualsEx(item, GetItemAt(index))) 1157if (System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 1343if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _editItem)) 1895(IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(_newItem, newItem))); 1933System.Windows.Controls.ItemsControl.EqualsEx(ItemFrom(InternalList[localOldIndex]), oldItem)) 1986bool simpleMove = System.Windows.Controls.ItemsControl.EqualsEx(oldItem, newItem); 1995System.Windows.Controls.ItemsControl.EqualsEx(InternalList[localOldIndex], oldItem)) 2167else if (IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 2649System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 2676if (!System.Windows.Controls.ItemsControl.EqualsEx(item, ilFull[index])) 2775if (System.Windows.Controls.ItemsControl.EqualsEx(ilFull[fullIndex], ilPartial[localIndex])) 2781else if (System.Windows.Controls.ItemsControl.EqualsEx(item, ilPartial[localIndex])) 2968if (!IsAddingNew || !System.Windows.Controls.ItemsControl.EqualsEx(_newItem, item)) 3180if (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)
2990ElementViewportPosition sourceElementPosition = ItemsControl.GetElementViewportPosition(viewportBoundsElement, 2991ItemsControl.TryGetTreeViewItemHeader(sourceElement) as UIElement, 3017currentRectElement = ItemsControl.TryGetTreeViewItemHeader(currElement); 3021ElementViewportPosition 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)
5590if (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)
998return (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)
1034ItemsControl childItemsControl = element as ItemsControl; 1038var itemTemplate = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateProperty); 1039var itemTemplateSelector = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateSelectorProperty); 1040var itemStringFormat = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemStringFormatProperty); 1041var itemContainerStyle = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleProperty); 1042var itemContainerStyleSelector = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleSelectorProperty); 1043var alternationCount = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.AlternationCountProperty); 1044var 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)
681ItemsControl 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)
252ItemsControl.ItemTemplateProperty, 262ItemsControl.ItemContainerStyleProperty,
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
1763RibbonTab 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) 1668new PropertyAndTransferMode () { Property = ItemsControl.ItemBindingGroupProperty, Mode = TransferMode.AlwaysTransfer }, 1669new PropertyAndTransferMode () { Property = ItemsControl.ItemContainerStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1670new PropertyAndTransferMode () { Property = ItemsControl.ItemContainerStyleSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 1671new PropertyAndTransferMode () { Property = ItemsControl.ItemsPanelProperty, Mode = TransferMode.AlwaysTransfer }, 1672new PropertyAndTransferMode () { Property = ItemsControl.ItemsSourceProperty, Mode = TransferMode.AlwaysTransfer }, 1673new PropertyAndTransferMode () { Property = ItemsControl.ItemStringFormatProperty, Mode = TransferMode.AlwaysTransfer }, 1674new PropertyAndTransferMode () { Property = ItemsControl.ItemTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1675new PropertyAndTransferMode () { Property = ItemsControl.ItemTemplateSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 1676new PropertyAndTransferMode () { Property = ItemsControl.DisplayMemberPathProperty, Mode = TransferMode.AlwaysTransfer }, 1677new PropertyAndTransferMode () { Property = ItemsControl.AlternationCountProperty, Mode = TransferMode.AlwaysTransfer }, 2052else if (original is ItemsControl) 2056TransferItems((ItemsControl)original, (ItemsControl)clone); 2164TransferItems((ItemsControl)original, (ItemsControl)clone); 2198TransferItems((ItemsControl)original, (ItemsControl)clone); 2222private static void TransferItems(ItemsControl originalItemsControl, ItemsControl cloneItemsControl) 2298markupProp.PropertyDescriptor.ComponentType == typeof(ItemsControl)) 2364internal static bool CoerceIsSubmenuOpenForTopLevelItem(RibbonMenuItem menuItem, ItemsControl parentItemsControl, bool baseValue) 2383internal static void HookPopupForTopLevelMenuItem(RibbonMenuItem menuItem, ItemsControl parentItemsControl) 2431RibbonApplicationMenu applicationMenu = ItemsControl.ItemsControlFromItemContainer(menuItem) as RibbonApplicationMenu; 2471ItemsControl 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); 1414ItemsControl parent = ItemsControlFromItemContainer(this); 1496ItemsControl 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) 748return EnsureInstance(d as ItemsControl); 875private ItemsControl _attachedTo;