12 types derived from ItemsControl
PresentationFramework (7)
System\Windows\Controls\HeaderedItemsControl.cs (1)
30public class HeaderedItemsControl : ItemsControl
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
29public class DataGridCellsPresenter : ItemsControl
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
28public class DataGridColumnHeadersPresenter : ItemsControl
System\Windows\Controls\Primitives\MenuBase.cs (1)
30public abstract class MenuBase : ItemsControl
System\Windows\Controls\Primitives\Selector.cs (1)
39public abstract class Selector : ItemsControl
System\Windows\Controls\Primitives\StatusBar.cs (1)
24public class StatusBar : ItemsControl
System\Windows\Controls\TreeView.cs (1)
29public class TreeView : ItemsControl
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
27public class RibbonContextualTabGroupItemsControl : ItemsControl
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (1)
28public class RibbonControlGroup : ItemsControl
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
52public class RibbonGallery : ItemsControl, IWeakEventListener, IPreviewCommandSource
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
43public class RibbonQuickAccessToolBar : ItemsControl
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (1)
28public class RibbonTabHeaderItemsControl : ItemsControl
2 instantiations of ItemsControl
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5879bamlType.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)
448if (ItemsControl.EqualsEx(CurrentItem, item))
MS\Internal\Data\CollectionViewGroupInternal.cs (6)
277if (System.Windows.Controls.ItemsControl.EqualsEx(item, Items[k])) 309if ((index < 0 && System.Windows.Controls.ItemsControl.EqualsEx(item, group.Items[k])) || 468if (localIndex < n && System.Windows.Controls.ItemsControl.EqualsEx(ProtectedItems[localIndex], list[fullIndex])) 661if (System.Windows.Controls.ItemsControl.EqualsEx(x, y)) 669if (System.Windows.Controls.ItemsControl.EqualsEx(x, z)) 673else if (System.Windows.Controls.ItemsControl.EqualsEx(y, z))
MS\Internal\Data\CollectionViewGroupRoot.cs (1)
155Debug.Assert(System.Windows.Controls.ItemsControl.EqualsEx(item, ProtectedItems[index]), "RemoveSpecialItem finds inconsistent data");
MS\Internal\Data\CompositeCollectionView.cs (6)
227if (ItemsControl.EqualsEx(CurrentItem, item)) 885if (ItemsControl.EqualsEx(_collection[positionX], item)) 1151if (ItemsControl.EqualsEx(CurrentItem, item)) 1180if (ItemsControl.EqualsEx(item, CurrentItem)) 1187if (ItemsControl.EqualsEx(item, item2)) 1671if (!ItemsControl.EqualsEx(CurrentItem, GetItem(CurrentPosition, out x, out y)) && !_collection.HasRepeatedCollection())
MS\Internal\Data\DifferencingCollection.cs (6)
64if (index < n && System.Windows.Controls.ItemsControl.EqualsEx(o, list[index])) 74if (index + 1 < n && System.Windows.Controls.ItemsControl.EqualsEx(o, list[index + 1])) 94if (index + 1 < n && System.Windows.Controls.ItemsControl.EqualsEx(o, list[index + 1])) 99if (System.Windows.Controls.ItemsControl.EqualsEx(target, list[index])) 128if (System.Windows.Controls.ItemsControl.EqualsEx(o, target)) 164if (System.Windows.Controls.ItemsControl.EqualsEx(target, list[index]))
MS\Internal\Data\EnumerableCollectionView.cs (4)
429if (!System.Windows.Controls.ItemsControl.EqualsEx(args.OldItems[i], _snapshot[index])) 439if (!System.Windows.Controls.ItemsControl.EqualsEx(args.OldItems[i], _snapshot[index])) 458if (!System.Windows.Controls.ItemsControl.EqualsEx(args.OldItems[i], _snapshot[oldIndex])) 472if (!System.Windows.Controls.ItemsControl.EqualsEx(args.OldItems[i], _snapshot[oldIndex]))
MS\Internal\Data\IndexedEnumerable.cs (1)
407Debug.Assert(System.Windows.Controls.ItemsControl.EqualsEx(_cachedItem, current), "EnsureCacheCurrent: _cachedItem out of sync with _enumerator.Current");
MS\Internal\Data\LiveShapingList.cs (3)
252if (x == y || System.Windows.Controls.ItemsControl.EqualsEx(x.Item, y.Item)) 326if (System.Windows.Controls.ItemsControl.EqualsEx(item, lsi.Item)) 529if (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)
497ItemsControl.EqualsEx(child.DataContext, parent.DataContext)) 519ItemsControl ic = ItemsControl.GetItemsOwner(layout);
MS\Internal\Data\PropertyPathWorker.cs (2)
418if (!ItemsControl.EqualsEx(oldValue, RawValue(k - 1))) 1000if (!ItemsControl.EqualsEx(item, BindingExpression.GetReference(_arySVS[level].item))
MS\Internal\Data\RBNode.cs (1)
758if (!System.Windows.Controls.ItemsControl.EqualsEx(node.GetItemAt(j), default(T)))
MS\Internal\Data\RBTree.cs (1)
489return IndexOf(item, (x, y) => { return System.Windows.Controls.ItemsControl.EqualsEx(x, y); });
MS\Internal\Data\XmlBindingWorker.cs (2)
239ItemsControl ic; 264(ic = TargetElement as ItemsControl) != null)
MS\Internal\Helper.cs (4)
472System.Windows.Controls.ItemsControl ic = System.Windows.Controls.ItemsControl.GetItemsOwner(parent); 1069ItemsControl scrollingItemsControl, 1171ItemsControl scrollingItemsControl,
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (5)
66ItemsControl owner = (ItemsControl)Owner; 117!ItemsControl.EqualsEx(peer.Item, dataItemHeader)) 168ItemsControl owner = (ItemsControl)Owner;
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (4)
127ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(Owner); 301ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(Owner);
System\Windows\Automation\Peers\ItemAutomationPeer.cs (10)
98ItemsControl owner = (ItemsControl)(itemsControlAutomationPeer.Owner); 289ItemsControl parentItemsControl = (ItemsControl)ItemsControlAutomationPeer.Owner; 323ItemsControl parentItemsControl = (ItemsControl)ItemsControlAutomationPeer.Owner; 337internal static int GetPositionInSetFromItemsControl(ItemsControl itemsControl, object item) 352internal static int GetSizeOfSetFromItemsControl(ItemsControl itemsControl, object item) 746ItemsControl parent = itemsControlAutomationPeer.Owner as ItemsControl;
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (14)
32protected ItemsControlAutomationPeer(ItemsControl owner): base(owner) 40ItemsControl owner = (ItemsControl)Owner; 53if(Owner as ItemsControl != null) 72ItemsControl owner = (ItemsControl)Owner; 239ItemsControl owner = this.Owner as ItemsControl; 261ItemsControl owner = (ItemsControl)Owner; 425ItemsControl itemsControl = (ItemsControl)Owner; 763public RecyclableWrapper(ItemsControl itemsControl, object item) 801ItemsControl _itemsControl;
System\Windows\Automation\Peers\ItemsControlWrapperAutomationPeer.cs (1)
18public ItemsControlWrapperAutomationPeer(ItemsControl owner)
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (6)
101ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(owner); 133ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(owner); 180ItemsControl owner = (ItemsControl)Owner;
System\Windows\Automation\Peers\SelectorAutomationPeer.cs (1)
100int itemsCount = (owner as ItemsControl).Items.Count;
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (2)
46ItemsControl itemscontrol = Owner as ItemsControl;
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (4)
51ItemsControl owner = (ItemsControl)Owner; 75ItemsControl owner = (ItemsControl)Owner;
System\Windows\Automation\Peers\TreeViewDataItemAutomationPeer.cs (2)
314ItemsControl parent = itemsControlAutomationPeer.Owner as ItemsControl;
System\Windows\Automation\Peers\TreeViewItemAutomationPeer.cs (2)
105object dataItem = (child as UIElement) != null ? (logicalParentAp.Owner as ItemsControl).GetItemOrContainerFromContainer(child as UIElement) : child; 383ItemsControl parent = ((TreeViewItem)Owner).ParentItemsControl;
System\Windows\Controls\DataGrid.cs (10)
2732if (index >= 0 && ItemsControl.EqualsEx(newItem, Items[index])) 2740if (index < Items.Count && ItemsControl.EqualsEx(newItem, Items[index])) 3098(ItemsControl.EqualsEx(CurrentItem, row.Item) && // rows match (the hard way) 5444ItemsControl itemsControl = ItemsControlFromItemContainer(e.OriginalSource as DependencyObject); 5635if ((e.Key == Key.Up && ItemsControl.EqualsEx(cvg.Items[0], currentInfo.Item)) || 5636(e.Key == Key.Down && ItemsControl.EqualsEx(cvg.Items[cvg.Items.Count - 1], currentInfo.Item))) 6006if (!ItemsControl.EqualsEx(CurrentCell.Item, rowInfo.Item)) 6194DataGrid focusedDataGrid = ItemsControl.ItemsControlFromItemContainer(startingRow) as DataGrid; 6747if (_editingRowInfo == null || !ItemsControl.EqualsEx(item, _editingRowInfo.Item) || 7773ItemsControl.ItemInfo info = cellInfo.ItemInfo;
System\Windows\Controls\DataGridCell.cs (3)
84internal void PrepareCell(object item, ItemsControl cellsPresenter, DataGridRow ownerRow) 1089dataGridOwner = ItemsControl.ItemsControlFromItemContainer(_owner) as DataGrid; 1130return ItemsControl.ItemsControlFromItemContainer(this) as DataGridCellsPresenter;
System\Windows\Controls\DataGridCellInfo.cs (5)
30_info = new ItemsControl.ItemInfo(item); 68internal DataGridCellInfo(ItemsControl.ItemInfo info, DataGridColumn column, DataGrid owner) 85_info = new ItemsControl.ItemInfo(item); 213internal ItemsControl.ItemInfo ItemInfo 283private ItemsControl.ItemInfo _info;
System\Windows\Controls\DataGridCellsPanel.cs (7)
886ItemsControl parentPresenter = ParentPresenter; 1055ItemsControl parentPresenter = ParentPresenter; 1788ItemsControl parentPresenter = ParentPresenter; 1812ItemsControl parentPresenter = ParentPresenter; 1871ItemsControl parentPresenter = ParentPresenter; 2437private ItemsControl ParentPresenter 2444return itemsPresenter.TemplatedParent as ItemsControl;
System\Windows\Controls\DataGridRow.cs (2)
176public static readonly DependencyProperty ItemsPanelProperty = ItemsControl.ItemsPanelProperty.AddOwner(typeof(DataGridRow)); 1052public static readonly DependencyProperty AlternationIndexProperty = ItemsControl.AlternationIndexProperty.AddOwner(typeof(DataGridRow));
System\Windows\Controls\GridViewHeaderRowPresenter.cs (5)
1043ItemsControl oldIC = _itemsControl; // backup the old value 1251private static ItemsControl FindItemsControlThroughTemplatedParent(GridViewHeaderRowPresenter presenter) 1254ItemsControl itemsControl = null; 1258itemsControl = fe as ItemsControl; 1650private ItemsControl _itemsControl;
System\Windows\Controls\GridViewRowPresenter.cs (3)
450ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(_viewItem) as ItemsControl;
System\Windows\Controls\GroupItem.cs (8)
64ItemsControl itemsControl = ParentItemsControl; 79ItemsControl itemsControl = groupItem.ParentItemsControl; 152internal void PrepareItemContainer(object item, ItemsControl parentItemsControl) 236internal void ClearItemContainer(object item, ItemsControl parentItemsControl) 373private ItemsControl ParentItemsControl 381ItemsControl parentItemsControl = parent as ItemsControl; 399DependencyObject owner = ItemsControl.GetItemsOwnerInternal(parentPanel);
System\Windows\Controls\HeaderedItemsControl.cs (2)
265internal void PrepareHeaderedItemsControl(object item, ItemsControl parentItemsControl) 405void PrepareHierarchy(object item, ItemsControl parentItemsControl)
System\Windows\Controls\ItemCollection.cs (6)
41/// A <seealso cref="System.Windows.Controls.ItemsControl"/> uses the data 237ModelParent.SetValue(ItemsControl.HasItemsPropertyKey, BooleanBoxes.TrueBox); 263ModelParent.ClearValue(ItemsControl.HasItemsPropertyKey); 382ModelParent.SetValue(ItemsControl.HasItemsPropertyKey, BooleanBoxes.TrueBox); 402ModelParent.ClearValue(ItemsControl.HasItemsPropertyKey); 425ModelParent.ClearValue(ItemsControl.HasItemsPropertyKey);
System\Windows\Controls\ItemContainerGenerator.cs (12)
598static (state, o, d) => ItemsControl.EqualsEx(o, state), item, 937Debug.Assert(item == null || ItemsControl.EqualsEx(item, target), 1034if (!ItemsControl.EqualsEx(genItem, actualItem)) 1211ItemsControl.ClearAlternationIndex(((RealizedItemBlock)block).ContainerAt(offset)); 1854index = (block == _itemMap) ? -1 : ItemsControl.GetAlternationIndex(rib.ContainerAt(offset)); 1876ItemsControl.SetAlternationIndex(rib.ContainerAt(offset), index); 1893index = (block == _itemMap) ? 1 : ItemsControl.GetAlternationIndex(rib.ContainerAt(offset)); 1915ItemsControl.SetAlternationIndex(rib.ContainerAt(offset), index); 2217Debug.Assert(ItemsControl.EqualsEx(rib.ItemAt(rib.ContainerCount - 1), 2231ItemsControl.EqualsEx(rib.ItemAt(0), 2381Debug.Assert(ItemsControl.EqualsEx(item, ItemsInternal[index]), "Event contains the wrong index"); 3058if (ItemsControl.EqualsEx(_entry[k].Item, item))
System\Windows\Controls\ItemContainerTemplateSelector.cs (2)
23public virtual DataTemplate SelectTemplate(object item, ItemsControl parentItemsControl) 31public override DataTemplate SelectTemplate(object item, ItemsControl parentItemsControl)
System\Windows\Controls\ItemsControl.cs (77)
64DefaultStyleKeyProperty.OverrideMetadata(typeof(ItemsControl), new FrameworkPropertyMetadata(typeof(ItemsControl))); 65_dType = DependencyObjectType.FromSystemTypeInternal(typeof(ItemsControl)); 66EventManager.RegisterClassHandler(typeof(ItemsControl), Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGotFocus)); 67VirtualizingStackPanel.ScrollUnitProperty.OverrideMetadata(typeof(ItemsControl), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnScrollingModeChanged), new CoerceValueCallback(CoerceScrollingMode))); 68VirtualizingPanel.CacheLengthProperty.OverrideMetadata(typeof(ItemsControl), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnCacheSizeChanged))); 69VirtualizingPanel.CacheLengthUnitProperty.OverrideMetadata(typeof(ItemsControl), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnCacheSizeChanged), new CoerceValueCallback(CoerceVirtualizationCacheLengthUnit))); 84if (((ItemsControl)d).IsGrouping && baseValueSource == BaseValueSource.Default) 106if ( !((ItemsControl)d).IsGrouping && !(d is TreeView) && baseValueSource == BaseValueSource.Default ) 186= DependencyProperty.Register("ItemsSource", typeof(IEnumerable), typeof(ItemsControl), 192ItemsControl ic = (ItemsControl) d; 342typeof(ItemsControl), 372typeof(ItemsControl), 394ItemsControl ctrl = (ItemsControl) d; 459typeof(ItemsControl), 481((ItemsControl) d).OnItemTemplateChanged((DataTemplate) e.OldValue, (DataTemplate) e.NewValue); 510typeof(ItemsControl), 537((ItemsControl)d).OnItemTemplateSelectorChanged((DataTemplateSelector) e.OldValue, (DataTemplateSelector) e.NewValue); 565typeof(ItemsControl), 588ItemsControl ctrl = (ItemsControl)d; 614typeof(ItemsControl), 638ItemsControl ctrl = (ItemsControl)d; 686typeof(ItemsControl), 709((ItemsControl) d).OnItemContainerStyleChanged((Style) e.OldValue, (Style) e.NewValue); 738typeof(ItemsControl), 765((ItemsControl) d).OnItemContainerStyleSelectorChanged((StyleSelector) e.OldValue, (StyleSelector) e.NewValue); 790public static ItemsControl GetItemsOwner(DependencyObject element) 792ItemsControl container = null; 808container = panel.TemplatedParent as ItemsControl; 817ItemsControl temp; 828internal static DependencyObject GetItemsOwnerInternal(DependencyObject element, out ItemsControl itemsControl) 849itemsControl = container as ItemsControl; 863= DependencyProperty.Register("ItemsPanel", typeof(ItemsPanelTemplate), typeof(ItemsControl), 893((ItemsControl) d).OnItemsPanelChanged((ItemsPanelTemplate) e.OldValue, (ItemsPanelTemplate) e.NewValue); 908DependencyProperty.RegisterReadOnly("IsGrouping", typeof(bool), typeof(ItemsControl), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, new PropertyChangedCallback(OnIsGroupingChanged))); 930((ItemsControl)d).OnIsGroupingChanged(e); 982= DependencyProperty.Register("GroupStyleSelector", typeof(GroupStyleSelector), typeof(ItemsControl), 1005((ItemsControl) d).OnGroupStyleSelectorChanged((GroupStyleSelector) e.OldValue, (GroupStyleSelector) e.NewValue); 1030typeof(ItemsControl), 1061ItemsControl ctrl = (ItemsControl) d; 1083typeof(ItemsControl), 1127typeof(ItemsControl), 1147typeof(ItemsControl), 1166public static ItemsControl ItemsControlFromItemContainer(DependencyObject container) 1173ItemsControl ic = LogicalTreeHelper.GetParent(ui) as ItemsControl; 1187return ItemsControl.GetItemsOwner(ui); 1196public static DependencyObject ContainerFromElement(ItemsControl itemsControl, DependencyObject element) 1234private static bool IsContainerForItemsControl(DependencyObject element, ItemsControl itemsControl) 1452ItemsControl ic = ItemsControlFromItemContainer(container); 1606ItemsControl ic; 1625else if ((ic = element as ItemsControl) != null) 1642ItemsControl ic; 1661else if ((ic = element as ItemsControl) != null) 1750internal void PrepareItemsControl(object item, ItemsControl parentItemsControl) 2161ItemsControl itemsControl = null; 2354ItemsControl itemsControl = GetEncapsulatingItemsControl(firstElement); 2420ItemsControl itemsControl = GetEncapsulatingItemsControl(firstElement); 2486ItemsControl itemsControl = GetEncapsulatingItemsControl(lastElement); 2514ItemsControl itemsControl = fe as ItemsControl; 3205ItemsControl itemsControl = (ItemsControl)sender; 3422private static ItemsControl GetEncapsulatingItemsControl(FrameworkElement element) 3426ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(element); 3438ItemsControl itemsControl = null; 3442private static object GetEncapsulatingItem(FrameworkElement element, out FrameworkElement container, out ItemsControl itemsControl) 3449itemsControl = ItemsControl.ItemsControlFromItemContainer(element); 3648else if (info.IsRemoved || !ItemsControl.EqualsEx(info.Item, 3691static (state, o, d) => ItemsControl.EqualsEx(o, state.item) && !state.claimedContainers.Contains(d), 3895if (!ItemsControl.EqualsEx(this.Item, that.Item))
System\Windows\Controls\ItemsPresenter.cs (4)
90internal ItemsControl Owner 210ItemsControl owner = templatedParent as ItemsControl; 341ItemsControl _owner;
System\Windows\Controls\ListBoxItem.cs (3)
337ItemsControl oldItemsControl = null; 349oldItemsControl = ItemsControl.GetItemsOwner(oldParent); 386return ItemsControl.ItemsControlFromItemContainer(this) as Selector;
System\Windows\Controls\MenuItem.cs (16)
366ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(menuItem); 448MenuItem parent = ItemsControl.ItemsControlFromItemContainer(this) as MenuItem; 1219ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1666MenuItem parent = ItemsControl.ItemsControlFromItemContainer(this) as MenuItem; 1686ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1817ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1997ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 2316ItemsControl owner = ItemsControl.ItemsControlFromItemContainer(this); 2319owner = VisualTreeHelper.GetParent(this) as ItemsControl; 2356ItemsControl parent = ItemsControlFromItemContainer(this);
System\Windows\Controls\Panel.cs (6)
252DependencyObject parent = ItemsControl.GetItemsOwnerInternal(this); 253ItemsControl itemsControl = parent as ItemsControl; 528bool isItemsHost = (ItemsControl.GetItemsOwnerInternal(this) != null); 578ItemsControl itemsOwner = ItemsControl.GetItemsOwner(this);
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
936_parentPresenter = ItemsControl.ItemsControlFromItemContainer(this) as DataGridColumnHeadersPresenter;
System\Windows\Controls\Primitives\DataGridRowsPresenter.cs (1)
151_owner = ItemsControl.GetItemsOwner(this) as DataGrid;
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (2)
309ItemsControl ic = ItemsControl.ItemsControlFromItemContainer(TemplatedParent);
System\Windows\Controls\Primitives\MenuBase.cs (1)
688internal static void SetSuspendingPopupAnimation(ItemsControl menu, MenuItem ignore, bool suspend)
System\Windows\Controls\Primitives\Selector.cs (2)
1876ItemsControl itemsControl = ItemsControl.ItemsControlFromItemContainer(o);
System\Windows\Controls\SelectedItemCollection.cs (3)
43foreach (ItemsControl.ItemInfo current in _selector._selectedItems) 224internal void Add(ItemsControl.ItemInfo info) 237internal void Remove(ItemsControl.ItemInfo info)
System\Windows\Controls\SelectionChangedEventArgs.cs (6)
52internal SelectionChangedEventArgs(List<ItemsControl.ItemInfo> unselectedInfos, List<ItemsControl.ItemInfo> selectedInfos) 99internal List<ItemsControl.ItemInfo> RemovedInfos 107internal List<ItemsControl.ItemInfo> AddedInfos 135private List<ItemsControl.ItemInfo> _addedInfos; 136private List<ItemsControl.ItemInfo> _removedInfos;
System\Windows\Controls\TabControl.cs (1)
537!ItemsControl.EqualsEx(selectedItem, ItemContainerGenerator.ItemFromContainer(tabItem)))
System\Windows\Controls\TabItem.cs (1)
512return ItemsControl.ItemsControlFromItemContainer(this) as TabControl;
System\Windows\Controls\TextSearch.cs (10)
47private TextSearch(ItemsControl itemsControl) 61internal static TextSearch EnsureInstance(ItemsControl itemsControl) 237_attachedTo.NavigateToItem(matchedItem, matchedItemIndex, new ItemsControl.ItemNavigateArgs(Keyboard.PrimaryDevice, ModifierKeys.None)); 379private static int FindMatchingPrefix(ItemsControl itemsControl, string primaryTextPath, string prefix, 508internal static MatchedTextInfo FindMatchingPrefix(ItemsControl itemsControl, string prefix) 564private static string GetPrimaryTextPath(ItemsControl itemsControl) 639internal static string GetPrimaryTextFromItem(ItemsControl itemsControl, object item) 654private static BindingExpression CreateBindingExpression(ItemsControl itemsControl, object item, string primaryTextPath) 728return EnsureInstance(d as ItemsControl); 834private ItemsControl _attachedTo;
System\Windows\Controls\ToolBar.cs (2)
394ToolBar toolBar = ItemsControl.ItemsControlFromItemContainer(element) as ToolBar; 647if (currentFocusElement != null && ItemsControl.ItemsControlFromItemContainer(currentFocusElement) == this)
System\Windows\Controls\TreeView.cs (2)
706ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(_selectedContainer);
System\Windows\Controls\TreeViewItem.cs (9)
432ItemsControl parent = ParentItemsControl; 441parent = ItemsControl.ItemsControlFromItemContainer(parent); 462internal ItemsControl ParentItemsControl 466return ItemsControl.ItemsControlFromItemContainer(this); 496ItemsControl parent = ParentItemsControl; 692ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(this); 893internal void PrepareItemContainer(object item, ItemsControl parentItemsControl) 911internal void ClearItemContainer(object item, ItemsControl parentItemsControl)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (4)
1328protected override DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner) 1618ItemsControl.ItemInfo rowInfo = owner.ItemInfoFromIndex(rowIndex); 1642ItemsControl.ItemInfo rowInfo = _owner.ItemInfoFromIndex(rowIndex); 1655protected virtual DataGridCellInfo CreateCellInfo(ItemsControl.ItemInfo rowInfo, DataGridColumn column, DataGrid owner)
System\Windows\Controls\VirtualizingPanel.cs (2)
348ItemsControl ic = d as ItemsControl;
System\Windows\Controls\VirtualizingStackPanel.cs (70)
749ItemsControl itemsControl; 750ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 837ItemsControl itemsControl; 838ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 1199ElementViewportPosition elementPosition = ItemsControl.GetElementViewportPosition( 1240ItemsControl itemsControl = fe as ItemsControl; 1260ItemsControl itemsControl; 1263if ((itemsControl = fe as ItemsControl) != null) 1627ItemsControl itemsControl = ItemsControl.GetItemsOwner(this); 1694private void BringContainerIntoView(ItemsControl itemsControl, int itemIndex) 2004ItemsControl itemsControl = ItemsControl.GetItemsOwner(this); 2153ItemsControl itemsControl = null; 3309ItemsControl itemsControl = null; 3750DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this); 3790ItemsControl itemsControl; 4027ItemsControl itemsControl; 4028ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 4091ItemsControl itemsControl = null; 4092DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 4144ItemsControl itemsControl = null; 4147DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(itemsHost, out itemsControl); 4162out ItemsControl itemsControl, 4178ItemsControl parentItemsControl = null; 4179DependencyObject itemsOwner = ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 4187parentItemsControl = ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent(itemsControl)) as ItemsControl; 4205ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent(itemsOwner)) as IContainItemStorage; 4238ItemsControl itemsControl, 6527ItemsControl scrollingItemsControl = GetScrollingItemsControl(child); 6562private ItemsControl GetScrollingItemsControl(UIElement container) 6566ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(container); 6575parent = ItemsControl.ItemsControlFromItemContainer(parent); 6584ItemsControl parentItemsControl = parent as ItemsControl; 9032ItemsControl itemsControl) 9048ItemsControl itemsControl, 9220ItemsControl itemsControl = ItemsControl.GetItemsOwner(this); 9400ItemsControl itemsControl = null; 9401ItemsControl.GetItemsOwnerInternal(this, out itemsControl); 9446private bool NotifyCleanupItem(int childIndex, UIElementCollection children, ItemsControl itemsControl) 9451private bool NotifyCleanupItem(UIElement child, ItemsControl itemsControl) 11006ItemsControl itemsControl; 11036ItemsControl scrollingItemsControl = ItemsControl.GetItemsOwner(this); 11113ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent((Visual)itemStorageProvider)) as IContainItemStorage; 12077ItemsControl target = o as ItemsControl; 12146ItemsControl itemsControl) 12317private WeakReference<ItemsControl> _wrIC; 12324private ScrollTracer(ItemsControl itemsControl, VirtualizingStackPanel vsp, TraceList traceList) 12326_wrIC = new WeakReference<ItemsControl>(itemsControl); 12359private void IdentifyTrace(ItemsControl ic, VirtualizingStackPanel vsp) 12411ItemsControl ic; 12429ItemsControl ic; 12508private static List<Tuple<WeakReference<ItemsControl>,TraceList>> s_TargetToTraceListMap 12509= new List<Tuple<WeakReference<ItemsControl>,TraceList>>(); 12512static TraceList TraceListForItemsControl(ItemsControl target) 12521WeakReference<ItemsControl> wr = s_TargetToTraceListMap[i].Item1; 12522ItemsControl itemsControl; 12540private static TraceList AddToMap(ItemsControl target) 12567new Tuple<WeakReference<ItemsControl>,TraceList>( 12568new WeakReference<ItemsControl>(target), 12592WeakReference<ItemsControl> wr = s_TargetToTraceListMap[i].Item1; 12593ItemsControl unused; 13066DependencyObject parentContainer = ItemsControl.ContainerFromElement(null, vsp);
System\Windows\Data\BindingExpression.cs (4)
937if (StatusInternal == BindingStatusInternal.Inactive || !System.Windows.Controls.ItemsControl.EqualsEx(item, DataItem)) 1501bool realTransfer = !(IsInUpdate && System.Windows.Controls.ItemsControl.EqualsEx(value, Value)); 2313if (!System.Windows.Controls.ItemsControl.EqualsEx(DataItem, item)) 2441if (!System.Windows.Controls.ItemsControl.EqualsEx(DataItem, newItem))
System\Windows\Data\BindingExpressionBase.cs (3)
1115if (ItemsControl.EqualsEx(value, EffectiveTargetNullValue)) 1741!ItemsControl.EqualsEx( contextElement.GetValue(dataContextDP), 2371if (ItemsControl.EqualsEx(toRemove[j].ErrorContent, errorContent))
System\Windows\Data\BindingGroup.cs (5)
616if (_hasMultipleInheritanceContexts && property != ItemsControl.ItemBindingGroupProperty && TraceData.IsEnabled) 832!ItemsControl.EqualsEx(dataContextItem, itemReference.Target)) 1300if (ItemsControl.EqualsEx(item, list[i].Target)) 1598ItemsControl.EqualsEx(item, entry.Item)) 1935ItemsControl.EqualsEx(item, entry.Item))
System\Windows\Data\BindingListCollectionView.cs (6)
856if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 921if (index >= InternalList.Count || !System.Windows.Controls.ItemsControl.EqualsEx(item, GetItemAt(index))) 974if (System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 1097if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _editItem)) 1724else if (IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 2296if (!IsAddingNew || !System.Windows.Controls.ItemsControl.EqualsEx(_newItem, item))
System\Windows\Data\CollectionView.cs (3)
519if (System.Windows.Controls.ItemsControl.EqualsEx(CurrentItem, item) || System.Windows.Controls.ItemsControl.EqualsEx(NewItemPlaceholder, item)) 528bool isNewItem = (ecv != null && ecv.IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(item, ecv.CurrentAddItem));
System\Windows\Data\CompositeCollection.cs (1)
30/// A <seealso cref="System.Windows.Controls.ItemsControl"/> uses the data
System\Windows\Data\ListCollectionView.cs (17)
765if (!System.Windows.Controls.ItemsControl.EqualsEx(newItem, SourceList[index])) 775Debug.Assert(_newItemIndex != -2 && System.Windows.Controls.ItemsControl.EqualsEx(newItem, _newItem), "AddNew did not raise expected events"); 1035if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 1100if (index >= InternalCount || !System.Windows.Controls.ItemsControl.EqualsEx(item, GetItemAt(index))) 1172if (System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 1367if (!System.Windows.Controls.ItemsControl.EqualsEx(item, _editItem)) 1919(IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(_newItem, newItem))); 1957System.Windows.Controls.ItemsControl.EqualsEx(ItemFrom(InternalList[localOldIndex]), oldItem)) 2010bool simpleMove = System.Windows.Controls.ItemsControl.EqualsEx(oldItem, newItem); 2019System.Windows.Controls.ItemsControl.EqualsEx(InternalList[localOldIndex], oldItem)) 2191else if (IsAddingNew && System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 2673System.Windows.Controls.ItemsControl.EqualsEx(item, _newItem)) 2700if (!System.Windows.Controls.ItemsControl.EqualsEx(item, ilFull[index])) 2799if (System.Windows.Controls.ItemsControl.EqualsEx(ilFull[fullIndex], ilPartial[localIndex])) 2805else if (System.Windows.Controls.ItemsControl.EqualsEx(item, ilPartial[localIndex])) 2992if (!IsAddingNew || !System.Windows.Controls.ItemsControl.EqualsEx(_newItem, item)) 3204if (System.Windows.Controls.ItemsControl.EqualsEx(item, ilFull[index]))
System\Windows\Data\MultiBindingExpression.cs (2)
964if (ItemsControl.EqualsEx(value, newValue)) 1347bool realTransfer = !(IsInUpdate && ItemsControl.EqualsEx(value, Value));
System\Windows\Input\KeyboardNavigation.cs (4)
3004ElementViewportPosition sourceElementPosition = ItemsControl.GetElementViewportPosition(viewportBoundsElement, 3005ItemsControl.TryGetTreeViewItemHeader(sourceElement) as UIElement, 3031currentRectElement = ItemsControl.TryGetTreeViewItemHeader(currElement); 3035ElementViewportPosition currentViewportPosition = ItemsControl.GetElementViewportPosition(
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
425case 329: t = () => typeof(ItemsControl); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (21)
3001Type type = typeof(System.Windows.Controls.ItemsControl); 3002DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemContainerStyleProperty; 3004this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3017Type type = typeof(System.Windows.Controls.ItemsControl); 3018DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemContainerStyleSelectorProperty; 3020this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3033Type type = typeof(System.Windows.Controls.ItemsControl); 3034DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemTemplateProperty; 3036this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3049Type type = typeof(System.Windows.Controls.ItemsControl); 3050DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemTemplateSelectorProperty; 3052this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3065Type type = typeof(System.Windows.Controls.ItemsControl); 3066DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemsPanelProperty; 3068this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 3081Type type = typeof(System.Windows.Controls.ItemsControl); 3082DependencyProperty dp = System.Windows.Controls.ItemsControl.ItemsSourceProperty; 3084this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 4952Type type = typeof(System.Windows.Controls.ItemsControl); 4954this.GetXamlType(typeof(System.Windows.Controls.ItemsControl)), // DeclaringType 4960bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.ItemsControl)target).Items; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5877typeof(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)
5600if (dp == ItemsControl.ItemsPanelProperty || dp == FrameworkElement.ContextMenuProperty || dp == FrameworkElement.ToolTipProperty)
System.Windows.Controls.Ribbon (110)
Microsoft\Windows\Automation\Peers\RibbonAutomationPeer.cs (1)
68ItemsControl tabHeadersItemsControl = OwningRibbon.RibbonTabHeaderItemsControl;
Microsoft\Windows\Automation\Peers\RibbonGalleryCategoryAutomationPeer.cs (2)
44ItemsControl owner = (ItemsControl)Owner;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (1)
1010return (RibbonGallery)ItemsControl.GetItemsOwner(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryItemsPanel.cs (1)
608return (RibbonGalleryCategory)ItemsControl.GetItemsOwner(this);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (3)
66ItemsControl itemsControl = ParentItemsControl; 320private ItemsControl ParentItemsControl 324return TreeHelper.FindTemplatedAncestor<ItemsControl>(this);
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (9)
1043ItemsControl childItemsControl = element as ItemsControl; 1047var itemTemplate = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateProperty); 1048var itemTemplateSelector = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateSelectorProperty); 1049var itemStringFormat = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemStringFormatProperty); 1050var itemContainerStyle = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleProperty); 1051var itemContainerStyleSelector = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleSelectorProperty); 1052var alternationCount = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.AlternationCountProperty); 1053var itemBindingGroup = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemBindingGroupProperty);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenuItem.cs (2)
119private ItemsControl ParentItemsControl 121get { return ItemsControl.ItemsControlFromItemContainer(this); }
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (2)
117private ItemsControl ParentItemsControl 119get { return ItemsControl.ItemsControlFromItemContainer(this); }
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
680ItemsControl matchedGalleryCategory = null;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (8)
1224internal static CollectionView GetSourceCollectionView(ItemsControl itemsControl) 2183var itemTemplate = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemTemplateProperty); 2184var itemTemplateSelector = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemTemplateSelectorProperty); 2185var itemStringFormat = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemStringFormatProperty); 2186var itemContainerStyle = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemContainerStyleProperty); 2187var itemContainerStyleSelector = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemContainerStyleSelectorProperty); 2188var alternationCount = RibbonHelper.GetValueAndValueSource(category, ItemsControl.AlternationCountProperty); 2189var itemBindingGroup = RibbonHelper.GetValueAndValueSource(category, ItemsControl.ItemBindingGroupProperty);
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (2)
260ItemsControl.ItemTemplateProperty, 270ItemsControl.ItemContainerStyleProperty,
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
1775RibbonTab tab = ItemsControl.ItemsControlFromItemContainer(this) as RibbonTab;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (40)
252ItemsControl itemsControl, 253ItemsControl parentItemsControl, 277RestoreValue(itemsControl, ItemsControl.ItemTemplateProperty, itemTemplate); 285RestoreValue(itemsControl, ItemsControl.ItemTemplateSelectorProperty, itemTemplateSelector); 293RestoreValue(itemsControl, ItemsControl.ItemStringFormatProperty, itemStringFormat); 301RestoreValue(itemsControl, ItemsControl.ItemContainerStyleProperty, itemContainerStyle); 309RestoreValue(itemsControl, ItemsControl.ItemContainerStyleSelectorProperty, itemContainerStyleSelector); 319RestoreValue(itemsControl, ItemsControl.AlternationCountProperty, alternationCount); 327RestoreValue(itemsControl, ItemsControl.ItemBindingGroupProperty, itemBindingGroup); 543internal static bool NavigateToFirstItem(ItemsControl itemsControl, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 554internal static bool NavigateToLastItem(ItemsControl itemsControl, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 565internal static FrameworkElement FindContainer(ItemsControl itemsControl, int startIndex, int direction, Action<int> bringIntoViewCallback, Func<FrameworkElement, bool> additionalCheck) 591internal static bool NavigateToItem(ItemsControl parent, int itemIndex, Action<int> bringIntoViewCallback) 605internal static bool NavigateToNextMenuItemOrGallery(ItemsControl parent, int startIndex, Action<int> bringIntoViewCallback) 634internal static bool NavigateToPreviousMenuItemOrGallery(ItemsControl parent, int startIndex, Action<int> bringIntoViewCallback) 1693new PropertyAndTransferMode () { Property = ItemsControl.ItemBindingGroupProperty, Mode = TransferMode.AlwaysTransfer }, 1694new PropertyAndTransferMode () { Property = ItemsControl.ItemContainerStyleProperty, Mode = TransferMode.AlwaysTransfer }, 1695new PropertyAndTransferMode () { Property = ItemsControl.ItemContainerStyleSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 1696new PropertyAndTransferMode () { Property = ItemsControl.ItemsPanelProperty, Mode = TransferMode.AlwaysTransfer }, 1697new PropertyAndTransferMode () { Property = ItemsControl.ItemsSourceProperty, Mode = TransferMode.AlwaysTransfer }, 1698new PropertyAndTransferMode () { Property = ItemsControl.ItemStringFormatProperty, Mode = TransferMode.AlwaysTransfer }, 1699new PropertyAndTransferMode () { Property = ItemsControl.ItemTemplateProperty, Mode = TransferMode.AlwaysTransfer }, 1700new PropertyAndTransferMode () { Property = ItemsControl.ItemTemplateSelectorProperty, Mode = TransferMode.AlwaysTransfer }, 1701new PropertyAndTransferMode () { Property = ItemsControl.DisplayMemberPathProperty, Mode = TransferMode.AlwaysTransfer }, 1702new PropertyAndTransferMode () { Property = ItemsControl.AlternationCountProperty, Mode = TransferMode.AlwaysTransfer }, 2077else if (original is ItemsControl) 2081TransferItems((ItemsControl)original, (ItemsControl)clone); 2189TransferItems((ItemsControl)original, (ItemsControl)clone); 2223TransferItems((ItemsControl)original, (ItemsControl)clone); 2247private static void TransferItems(ItemsControl originalItemsControl, ItemsControl cloneItemsControl) 2323markupProp.PropertyDescriptor.ComponentType == typeof(ItemsControl)) 2389internal static bool CoerceIsSubmenuOpenForTopLevelItem(RibbonMenuItem menuItem, ItemsControl parentItemsControl, bool baseValue) 2408internal static void HookPopupForTopLevelMenuItem(RibbonMenuItem menuItem, ItemsControl parentItemsControl) 2450RibbonApplicationMenu applicationMenu = ItemsControl.ItemsControlFromItemContainer(menuItem) as RibbonApplicationMenu; 2490ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(menuItem);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (2)
903ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(selectionItem);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (5)
728ItemsControl parent = ItemsControl.ItemsControlFromItemContainer(this); 1429ItemsControl parent = ItemsControlFromItemContainer(this); 1511ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(selectionItem);
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (9)
251ItemsControl childItemsControl = element as ItemsControl; 255var itemTemplate = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateProperty); 256var itemTemplateSelector = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemTemplateSelectorProperty); 257var itemStringFormat = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemStringFormatProperty); 258var itemContainerStyle = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleProperty); 259var itemContainerStyleSelector = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemContainerStyleSelectorProperty); 260var alternationCount = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.AlternationCountProperty); 261var itemBindingGroup = RibbonHelper.GetValueAndValueSource(childItemsControl, ItemsControl.ItemBindingGroupProperty);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (2)
125ItemsControl tabHeaderItemsControl = ItemsControl.ItemsControlFromItemContainer(this);
Microsoft\Windows\Controls\TextSearchInternal.cs (19)
39private TextSearchInternal(ItemsControl itemsControl) 53internal static TextSearchInternal EnsureInstance(ItemsControl itemsControl) 145ItemsControl childItemsControl = _attachedTo.ItemContainerGenerator.ContainerFromIndex(currentIndex) as ItemsControl; 344private static int FindMatchingPrefix(ItemsControl itemsControl, string primaryTextPath, 374private static int FindMatchingPrefix(ItemsControl itemsControl, string primaryTextPath, 487internal static int FindMatchingPrefix(ItemsControl itemsControl, string prefix, bool doHierarchicalSearch) 497internal static object FindMatchingPrefix(ItemsControl itemsControl, string prefix, bool doHierarchicalSearch, out ItemsControl matchedChildItemsControl) 506ItemsControl childItemsControl = itemsControl.ItemContainerGenerator.ContainerFromItem(item) as ItemsControl; 555private static string GetPrimaryTextPath(ItemsControl itemsControl, bool doHierarchicalSearch) 567ItemsControl parentItemsControl = ItemsControl.ItemsControlFromItemContainer(itemsControl); 576ItemsControl grandParentItemsControl = ItemsControl.ItemsControlFromItemContainer(parentItemsControl); 669internal static string GetPrimaryTextFromItem(ItemsControl itemsControl, object item, bool doHierarchicalSearch) 752return EnsureInstance(d as ItemsControl); 879private ItemsControl _attachedTo;