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)
30public 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)
5877bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.ItemsControl(); };
System\Windows\Markup\KnownTypes.cs (1)
1350case 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)
275if (System.Windows.Controls.ItemsControl.EqualsEx(item, Items[k])) 307if ((index < 0 && System.Windows.Controls.ItemsControl.EqualsEx(item, group.Items[k])) || 466if (localIndex < n && System.Windows.Controls.ItemsControl.EqualsEx(ProtectedItems[localIndex], list[fullIndex])) 659if (System.Windows.Controls.ItemsControl.EqualsEx(x, y)) 667if (System.Windows.Controls.ItemsControl.EqualsEx(x, z)) 671else 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)
221if (ItemsControl.EqualsEx(CurrentItem, item)) 879if (ItemsControl.EqualsEx(_collection[positionX], item)) 1145if (ItemsControl.EqualsEx(CurrentItem, item)) 1174if (ItemsControl.EqualsEx(item, CurrentItem)) 1181if (ItemsControl.EqualsEx(item, item2)) 1665if (!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)
402Debug.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)
100if (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))) 994if (!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)
2729if (index >= 0 && ItemsControl.EqualsEx(newItem, Items[index])) 2737if (index < Items.Count && ItemsControl.EqualsEx(newItem, Items[index])) 3095(ItemsControl.EqualsEx(CurrentItem, row.Item) && // rows match (the hard way) 5441ItemsControl itemsControl = ItemsControlFromItemContainer(e.OriginalSource as DependencyObject); 5632if ((e.Key == Key.Up && ItemsControl.EqualsEx(cvg.Items[0], currentInfo.Item)) || 5633(e.Key == Key.Down && ItemsControl.EqualsEx(cvg.Items[cvg.Items.Count - 1], currentInfo.Item))) 6003if (!ItemsControl.EqualsEx(CurrentCell.Item, rowInfo.Item)) 6191DataGrid focusedDataGrid = ItemsControl.ItemsControlFromItemContainer(startingRow) as DataGrid; 6744if (_editingRowInfo == null || !ItemsControl.EqualsEx(item, _editingRowInfo.Item) || 7770ItemsControl.ItemInfo info = cellInfo.ItemInfo;
System\Windows\Controls\DataGridCell.cs (3)
77internal void PrepareCell(object item, ItemsControl cellsPresenter, DataGridRow ownerRow) 1082dataGridOwner = ItemsControl.ItemsControlFromItemContainer(_owner) as DataGrid; 1123return 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; 1784ItemsControl parentPresenter = ParentPresenter; 1808ItemsControl parentPresenter = ParentPresenter; 1867ItemsControl parentPresenter = ParentPresenter; 2433private ItemsControl ParentPresenter 2440return itemsPresenter.TemplatedParent as ItemsControl;
System\Windows\Controls\DataGridRow.cs (2)
172public static readonly DependencyProperty ItemsPanelProperty = ItemsControl.ItemsPanelProperty.AddOwner(typeof(DataGridRow)); 1048public static readonly DependencyProperty AlternationIndexProperty = ItemsControl.AlternationIndexProperty.AddOwner(typeof(DataGridRow));
System\Windows\Controls\GridViewHeaderRowPresenter.cs (5)
1040ItemsControl oldIC = _itemsControl; // backup the old value 1248private static ItemsControl FindItemsControlThroughTemplatedParent(GridViewHeaderRowPresenter presenter) 1251ItemsControl itemsControl = null; 1255itemsControl = fe as ItemsControl; 1647private 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); 2211Debug.Assert(ItemsControl.EqualsEx(rib.ItemAt(rib.ContainerCount - 1), 2225ItemsControl.EqualsEx(rib.ItemAt(0), 2375Debug.Assert(ItemsControl.EqualsEx(item, ItemsInternal[index]), "Event contains the wrong index"); 3052if (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); 2306ItemsControl owner = ItemsControl.ItemsControlFromItemContainer(this); 2309owner = VisualTreeHelper.GetParent(this) as ItemsControl; 2346ItemsControl 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)
1867ItemsControl 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)
506return 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)
701ItemsControl 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) 1622ItemsControl itemsControl = ItemsControl.GetItemsOwner(this); 1689private void BringContainerIntoView(ItemsControl itemsControl, int itemIndex) 1999ItemsControl itemsControl = ItemsControl.GetItemsOwner(this); 2148ItemsControl itemsControl = null; 3304ItemsControl itemsControl = null; 3745DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this); 3785ItemsControl itemsControl; 4022ItemsControl itemsControl; 4023ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 4086ItemsControl itemsControl = null; 4087DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 4139ItemsControl itemsControl = null; 4142DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(itemsHost, out itemsControl); 4157out ItemsControl itemsControl, 4173ItemsControl parentItemsControl = null; 4174DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 4182parentItemsControl = ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent(itemsControl)) as ItemsControl; 4200ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent(itemsOwner)) as IContainItemStorage; 4233ItemsControl itemsControl, 6522ItemsControl scrollingItemsControl = GetScrollingItemsControl(child); 6557private ItemsControl GetScrollingItemsControl(UIElement container) 6561ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(container); 6570parent = ItemsControl.ItemsControlFromItemContainer(parent); 6579ItemsControl 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) 11001ItemsControl itemsControl; 11031ItemsControl scrollingItemsControl = ItemsControl.GetItemsOwner(this); 11108ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent((Visual)itemStorageProvider)) as IContainItemStorage; 12072ItemsControl target = o as ItemsControl; 12141ItemsControl itemsControl) 12312private WeakReference<ItemsControl> _wrIC; 12319private ScrollTracer(ItemsControl itemsControl, VirtualizingStackPanel vsp, TraceList traceList) 12321_wrIC = new WeakReference<ItemsControl>(itemsControl); 12354private void IdentifyTrace(ItemsControl ic, VirtualizingStackPanel vsp) 12406ItemsControl ic; 12424ItemsControl ic; 12503private static List<Tuple<WeakReference<ItemsControl>,TraceList>> s_TargetToTraceListMap 12504= new List<Tuple<WeakReference<ItemsControl>,TraceList>>(); 12507static TraceList TraceListForItemsControl(ItemsControl target) 12516WeakReference<ItemsControl> wr = s_TargetToTraceListMap[i].Item1; 12517ItemsControl itemsControl; 12535private static TraceList AddToMap(ItemsControl target) 12562new Tuple<WeakReference<ItemsControl>,TraceList>( 12563new WeakReference<ItemsControl>(target), 12587WeakReference<ItemsControl> wr = s_TargetToTraceListMap[i].Item1; 12588ItemsControl unused; 13061DependencyObject 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)); 2304if (!System.Windows.Controls.ItemsControl.EqualsEx(DataItem, item)) 2432if (!System.Windows.Controls.ItemsControl.EqualsEx(DataItem, newItem))
System\Windows\Data\BindingExpressionBase.cs (3)
1107if (ItemsControl.EqualsEx(value, EffectiveTargetNullValue)) 1733!ItemsControl.EqualsEx( contextElement.GetValue(dataContextDP), 2363if (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)) 1295if (ItemsControl.EqualsEx(item, list[i].Target)) 1593ItemsControl.EqualsEx(item, entry.Item)) 1930ItemsControl.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)
2994ElementViewportPosition sourceElementPosition = ItemsControl.GetElementViewportPosition(viewportBoundsElement, 2995ItemsControl.TryGetTreeViewItemHeader(sourceElement) as UIElement, 3021currentRectElement = ItemsControl.TryGetTreeViewItemHeader(currElement); 3025ElementViewportPosition currentViewportPosition = ItemsControl.GetElementViewportPosition(
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
423case 329: t = () => typeof(ItemsControl); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (21)
2999Type type = typeof(System.Windows.Controls.ItemsControl); 3000DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemContainerStyleProperty; 3002this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3015Type type = typeof(System.Windows.Controls.ItemsControl); 3016DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemContainerStyleSelectorProperty; 3018this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3031Type type = typeof(System.Windows.Controls.ItemsControl); 3032DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemTemplateProperty; 3034this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3047Type type = typeof(System.Windows.Controls.ItemsControl); 3048DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemTemplateSelectorProperty; 3050this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3063Type type = typeof(System.Windows.Controls.ItemsControl); 3064DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemsPanelProperty; 3066this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3079Type type = typeof(System.Windows.Controls.ItemsControl); 3080DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemsSourceProperty; 3082this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 4950Type type = typeof(System.Windows.Controls.ItemsControl); 4952this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 4958bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ItemsControl)target).Items; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5875typeof(System.Windows.Controls.ItemsControl),
System\Windows\Markup\KnownTypes.cs (8)
1834return System.Windows.Controls.ItemsControl.ItemContainerStyleProperty; 1836return System.Windows.Controls.ItemsControl.ItemContainerStyleSelectorProperty; 1838return System.Windows.Controls.ItemsControl.ItemTemplateProperty; 1840return System.Windows.Controls.ItemsControl.ItemTemplateSelectorProperty; 1842return System.Windows.Controls.ItemsControl.ItemsPanelProperty; 1844return System.Windows.Controls.ItemsControl.ItemsSourceProperty; 2457return (o as System.Windows.Controls.ItemsControl).Items; 5883case KnownElements.ItemsControl: t = typeof(System.Windows.Controls.ItemsControl); break;
System\Windows\StyleHelper.cs (1)
5594if (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)
1005return (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)
678ItemsControl matchedGalleryCategory = null;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (8)
1222internal static CollectionView GetSourceCollectionView(ItemsControl itemsControl) 2181var itemTemplate = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemTemplateProperty); 2182var itemTemplateSelector = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemTemplateSelectorProperty); 2183var itemStringFormat = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemStringFormatProperty); 2184var itemContainerStyle = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemContainerStyleProperty); 2185var itemContainerStyleSelector = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemContainerStyleSelectorProperty); 2186var alternationCount = RibbonHelper.GetValueAndValueSource(category, ItemsControl.AlternationCountProperty); 2187var 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)
247ItemsControl itemsControl, 248ItemsControl parentItemsControl, 272RestoreValue(itemsControl, ItemsControl.ItemTemplateProperty, itemTemplate); 280RestoreValue(itemsControl, ItemsControl.ItemTemplateSelectorProperty, itemTemplateSelector); 288RestoreValue(itemsControl, ItemsControl.ItemStringFormatProperty, itemStringFormat); 296RestoreValue(itemsControl, ItemsControl.ItemContainerStyleProperty, itemContainerStyle); 304RestoreValue(itemsControl, ItemsControl.ItemContainerStyleSelectorProperty, itemContainerStyleSelector); 314RestoreValue(itemsControl, ItemsControl.AlternationCountProperty, alternationCount); 322RestoreValue(itemsControl, ItemsControl.ItemBindingGroupProperty, itemBindingGroup); 538internal static bool NavigateToFirstItem(ItemsControl itemsControl, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 549internal static bool NavigateToLastItem(ItemsControl itemsControl, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 560internal static FrameworkElement FindContainer(ItemsControl itemsControl, int startIndex, int direction, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 586internal static bool NavigateToItem(ItemsControl parent, int itemIndex, Action<int> bringIntoViewCallback) 600internal static bool NavigateToNextMenuItemOrGallery(ItemsControl parent, int startIndex, Action<int> bringIntoViewCallback) 629internal static bool NavigateToPreviousMenuItemOrGallery(ItemsControl parent, int startIndex, Action<int> bringIntoViewCallback) 1688new PropertyAndTransferMode () { Property = ItemsControl.ItemBindingGroupProperty, Mode = TransferMode.AlwaysTransfer }, 1689new PropertyAndTransferMode () { Property = ItemsControl.ItemContainerStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1690new PropertyAndTransferMode () { Property = ItemsControl.ItemContainerStyleSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 1691new PropertyAndTransferMode () { Property = ItemsControl.ItemsPanelProperty, Mode = TransferMode.AlwaysTransfer }, 1692new PropertyAndTransferMode () { Property = ItemsControl.ItemsSourceProperty, Mode = TransferMode.AlwaysTransfer }, 1693new PropertyAndTransferMode () { Property = ItemsControl.ItemStringFormatProperty, Mode = TransferMode.AlwaysTransfer }, 1694new PropertyAndTransferMode () { Property = ItemsControl.ItemTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1695new PropertyAndTransferMode () { Property = ItemsControl.ItemTemplateSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 1696new PropertyAndTransferMode () { Property = ItemsControl.DisplayMemberPathProperty, Mode = TransferMode.AlwaysTransfer }, 1697new PropertyAndTransferMode () { Property = ItemsControl.AlternationCountProperty, Mode = TransferMode.AlwaysTransfer }, 2072else if (original is ItemsControl) 2076TransferItems((ItemsControl)original, (ItemsControl)clone); 2184TransferItems((ItemsControl)original, (ItemsControl)clone); 2218TransferItems((ItemsControl)original, (ItemsControl)clone); 2242private static void TransferItems(ItemsControl originalItemsControl, ItemsControl cloneItemsControl) 2318markupProp.PropertyDescriptor.ComponentType == typeof(ItemsControl)) 2384internal static bool CoerceIsSubmenuOpenForTopLevelItem(RibbonMenuItem menuItem, ItemsControl parentItemsControl, bool baseValue) 2403internal static void HookPopupForTopLevelMenuItem(RibbonMenuItem menuItem, ItemsControl parentItemsControl) 2445RibbonApplicationMenu applicationMenu = ItemsControl.ItemsControlFromItemContainer(menuItem) as RibbonApplicationMenu; 2485ItemsControl 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) 749return EnsureInstance(d as ItemsControl); 876private ItemsControl _attachedTo;