204 references to ItemContainerGenerator
Microsoft.VisualStudio.LanguageServices (4)
ChangeSignature\ChangeSignatureDialog.xaml.cs (2)
206
if (Members.
ItemContainerGenerator
.ContainerFromIndex(Members.SelectedIndex) is not DataGridRow row)
209
row = Members.
ItemContainerGenerator
.ContainerFromIndex(Members.SelectedIndex) as DataGridRow;
PickMembers\PickMembersDialog.xaml.cs (2)
110
if (Members.
ItemContainerGenerator
.ContainerFromIndex(Members.SelectedIndex) is not ListViewItem row)
113
row = Members.
ItemContainerGenerator
.ContainerFromIndex(Members.SelectedIndex) as ListViewItem;
PresentationFramework (97)
System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (1)
133
if (owner.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (2)
211
ListViewItem lvi = _listview.
ItemContainerGenerator
.ContainerFromIndex(row) as ListViewItem;
221
lvi = _listview.
ItemContainerGenerator
.ContainerFromIndex(row) as ListViewItem;
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (2)
55
ListViewItem lvi = listview.
ItemContainerGenerator
.ContainerFromItem(item) as ListViewItem;
65
int row = listview.
ItemContainerGenerator
.IndexFromContainer(lvi);
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (2)
218
object item = itemsControl.
ItemContainerGenerator
.ItemFromContainer(child);
304
CollectionViewGroupInternal cvg = itemsControl.
ItemContainerGenerator
.ItemFromContainer(Owner) as CollectionViewGroupInternal;
System\Windows\Automation\Peers\ItemAutomationPeer.cs (2)
107
wrapper = owner.
ItemContainerGenerator
.ContainerFromItem(item) as UIElement;
749
if (parent.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
165
dataItem = (d != null) ? owner.
ItemContainerGenerator
.ItemFromContainer(d) : null;
776
((IItemContainerGenerator)_itemsControl.
ItemContainerGenerator
).PrepareItemContainer(_container);
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (1)
188
UIElement uiElement = owner.
ItemContainerGenerator
.ContainerFromIndex(i) as UIElement;
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
58
StatusBarItem item = itemscontrol.
ItemContainerGenerator
.ContainerFromItem(obj) as StatusBarItem;
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (1)
86
TreeViewItem treeViewItem = owner.
ItemContainerGenerator
.ContainerFromIndex(i) as TreeViewItem;
System\Windows\Automation\Peers\TreeViewDataItemAutomationPeer.cs (1)
317
if (parent.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
System\Windows\Controls\ComboBox.cs (2)
1262
object item =
ItemContainerGenerator
.ItemFromContainer(comboBoxItem);
1581
DependencyObject container =
ItemContainerGenerator
.ContainerFromIndex(i);
System\Windows\Controls\DataGrid.cs (16)
455
if (ColumnHeadersPresenter != null && ColumnHeadersPresenter.
ItemContainerGenerator
!= null)
457
return (DataGridColumnHeader)ColumnHeadersPresenter.
ItemContainerGenerator
.ContainerFromIndex(columnIndex);
617
foreach (DependencyObject container in
ItemContainerGenerator
.RecyclableContainers)
1306
var row = (DataGridRow)
ItemContainerGenerator
.ContainerFromItem(item);
1326
var row = (DataGridRow)
ItemContainerGenerator
.ContainerFromItem(item);
1352
var row = (DataGridRow)
ItemContainerGenerator
.ContainerFromItem(item);
1550
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
1587
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
1813
DataGridRow row = (DataGridRow)
ItemContainerGenerator
.ContainerFromIndex(info.Index);
2154
newItemIndex =
ItemContainerGenerator
.IndexFromContainer(cell.RowOwner);
3099
(currentIndex < 0 || currentIndex ==
ItemContainerGenerator
.IndexFromContainer(row))
3811
DataGridRow newItemPlaceholderRow = (DataGridRow)
ItemContainerGenerator
.ContainerFromItem(CollectionView.NewItemPlaceholder);
5631
CollectionViewGroupInternal cvg =
ItemContainerGenerator
.ItemFromContainer(currentGroupItem) as CollectionViewGroupInternal;
6433
row =
ItemContainerGenerator
.ContainerFromIndex(i) as DataGridRow;
6482
row =
ItemContainerGenerator
.ContainerFromIndex(i) as DataGridRow;
7054
DataGridRow row = (DataGridRow)
ItemContainerGenerator
.ContainerFromItem(item);
System\Windows\Controls\DataGridCell.cs (1)
86
PrepareCell(item, ownerRow, cellsPresenter.
ItemContainerGenerator
.IndexFromContainer(this));
System\Windows\Controls\DataGridCellsPanel.cs (2)
892
ItemContainerGenerator generator = parentPresenter.
ItemContainerGenerator
;
1791
IItemContainerGenerator generator = parentPresenter.
ItemContainerGenerator
as IItemContainerGenerator;
System\Windows\Controls\DataGridColumn.cs (1)
622
DataGridRow row = _dataGridOwner.
ItemContainerGenerator
.ContainerFromItem(dataItem) as DataGridRow;
System\Windows\Controls\DataGridRow.cs (2)
1319
return dataGridOwner.
ItemContainerGenerator
.IndexFromContainer(this);
1362
return cellsPresenter.
ItemContainerGenerator
.ContainerFromIndex(index) as DataGridCell;
System\Windows\Controls\GroupItem.cs (1)
67
Helper.SetItemValuesOnContainer(itemsControl, _expander, itemsControl.
ItemContainerGenerator
.ItemFromContainer(this));
System\Windows\Controls\ItemsControl.cs (19)
903
ItemContainerGenerator
.OnPanelChanged();
1076
ItemContainerGenerator
.ChangeAlternationCount();
2609
FrameworkElement container =
ItemContainerGenerator
.ContainerFromIndex(startIndex) as FrameworkElement;
2677
container =
ItemContainerGenerator
.ContainerFromIndex(index) as FrameworkElement;
2687
container =
ItemContainerGenerator
.ContainerFromIndex(index) as FrameworkElement;
2773
object firstItem = GetFirstItemOnCurrentPage(
ItemContainerGenerator
.ContainerFromItem(startingItem) as FrameworkElement,
2928
FrameworkElement container =
ItemContainerGenerator
.ContainerFromItem(item) as FrameworkElement;
3209
object item = itemsControl.
ItemContainerGenerator
.ItemFromContainer(focusedElement);
3452
item = itemsControl.
ItemContainerGenerator
.ItemFromContainer(element);
3543
object item =
ItemContainerGenerator
.ItemFromContainer(container);
3582
return new ItemInfo(item, container, index).Refresh(
ItemContainerGenerator
);
3588
return NewItemInfo(
ItemContainerGenerator
.ItemFromContainer(container), container,
ItemContainerGenerator
.IndexFromContainer(container));
3594
return (index >= 0) ? NewItemInfo(Items[index],
ItemContainerGenerator
.ContainerFromIndex(index), index)
3612
container =
ItemContainerGenerator
.ContainerFromIndex(info.Index);
3617
container =
ItemContainerGenerator
.ContainerFromItem(info.Item);
3684
container =
ItemContainerGenerator
.ContainerFromIndex(index);
3690
ItemContainerGenerator
.FindItem(
3822
info.Refresh(
ItemContainerGenerator
);
System\Windows\Controls\ItemsPresenter.cs (1)
216
generator = owner.
ItemContainerGenerator
;
System\Windows\Controls\ListBox.cs (3)
127
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
948
return
ItemContainerGenerator
.IndexFromContainer(listItem);
953
return
ItemContainerGenerator
.ContainerFromIndex(index) as ListBoxItem;
System\Windows\Controls\ListView.cs (1)
263
ItemContainerGenerator
.Refresh();
System\Windows\Controls\Menu.cs (1)
354
MenuItem menuItem =
ItemContainerGenerator
.ContainerFromIndex(i) as MenuItem;
System\Windows\Controls\MenuItem.cs (2)
369
object originalItem = parent.
ItemContainerGenerator
.ItemFromContainer(menuItem);
635
MenuItem subItem = menuItem.
ItemContainerGenerator
.ContainerFromIndex(i) as MenuItem;
System\Windows\Controls\Panel.cs (2)
263
IItemContainerGenerator generator = itemsControl.
ItemContainerGenerator
as IItemContainerGenerator;
585
IItemContainerGenerator itemsOwnerGenerator = itemsOwner.
ItemContainerGenerator
;
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (2)
166
cell = (DataGridCell)
ItemContainerGenerator
.ContainerFromIndex(i);
184
cell = (DataGridCell)
ItemContainerGenerator
.ContainerFromIndex(i);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
270
int index =
ItemContainerGenerator
.IndexFromContainer(container);
System\Windows\Controls\Primitives\DataGridRowHeader.cs (2)
694
int index = dataGrid.
ItemContainerGenerator
.IndexFromContainer(row);
697
return (DataGridRow)dataGrid.
ItemContainerGenerator
.ContainerFromIndex(index - 1);
System\Windows\Controls\Primitives\DataGridRowsPresenter.cs (1)
59
IItemContainerGenerator generator = dataGrid.
ItemContainerGenerator
as IItemContainerGenerator;
System\Windows\Controls\Primitives\MenuBase.cs (1)
697
MenuItem mi = menu.
ItemContainerGenerator
.ContainerFromIndex(i) as MenuItem;
System\Windows\Controls\Primitives\Selector.cs (3)
55
ItemContainerGenerator
.StatusChanged += new EventHandler(OnGeneratorStatusChanged);
1490
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
1879
object data = itemsControl.
ItemContainerGenerator
.ItemFromContainer(o);
System\Windows\Controls\TabControl.cs (9)
92
TabItem ti = tc.
ItemContainerGenerator
.ContainerFromIndex(i) as TabItem;
327
ItemContainerGenerator
.StatusChanged += new EventHandler(OnGeneratorStatusChanged);
429
startIndex =
ItemContainerGenerator
.IndexFromContainer(
ItemContainerGenerator
.ContainerFromItem(SelectedItem));
471
TabItem tabItem =
ItemContainerGenerator
.ContainerFromIndex(index) as TabItem;
510
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
531
tabItem =
ItemContainerGenerator
.ContainerFromIndex(SelectedIndex) as TabItem;
537
!ItemsControl.EqualsEx(selectedItem,
ItemContainerGenerator
.ItemFromContainer(tabItem)))
539
tabItem =
ItemContainerGenerator
.ContainerFromItem(selectedItem) as TabItem;
System\Windows\Controls\TreeView.cs (2)
355
ChangeSelection(collapsed.ParentItemsControl.
ItemContainerGenerator
.ItemFromContainer(collapsed), collapsed, true);
468
container =
ItemContainerGenerator
.ContainerFromIndex(0) as TreeViewItem;
System\Windows\Controls\TreeViewItem.cs (3)
937
ItemContainerGenerator
.RemoveAllInternal(true /*saveRecycleQueue*/);
1047
subitem = (TreeViewItem)item.
ItemContainerGenerator
.ContainerFromIndex(i);
1051
subitem = (TreeViewItem)item.
ItemContainerGenerator
.ContainerFromIndex(i);
System\Windows\Controls\VirtualizingStackPanel.cs (4)
4183
parentItem = itemsControl.
ItemContainerGenerator
.ItemFromContainer(groupItem);
4190
parentItem = parentItemsControl.
ItemContainerGenerator
.ItemFromContainer(itemsControl);
9130
item = itemsControl.
ItemContainerGenerator
.ItemFromContainer(child);
9453
CleanUpVirtualizedItemEventArgs e = new CleanUpVirtualizedItemEventArgs(itemsControl.
ItemContainerGenerator
.ItemFromContainer(child), child);
System.Windows.Controls.Ribbon (103)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonContextualTabGroupsPanel.cs (1)
181
IItemContainerGenerator generator = groupHeaderItemsControl.
ItemContainerGenerator
as IItemContainerGenerator;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (1)
75
IItemContainerGenerator generator = itemsControl.
ItemContainerGenerator
as IItemContainerGenerator;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (3)
281
IItemContainerGenerator generator = tabHeaderItemsControl.
ItemContainerGenerator
as IItemContainerGenerator;
722
if (groupHeaderItemsControl.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
727
RibbonContextualTabGroup groupHeader = groupHeaderItemsControl.
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonContextualTabGroup;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (1)
72
if (groupHeaderItemsControl.
ItemContainerGenerator
.Status != GeneratorStatus.ContainersGenerated)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (17)
142
ItemContainerGenerator
.StatusChanged += new EventHandler(OnItemContainerGeneratorStatusChanged);
791
int index = _tabHeaderItemsControl.
ItemContainerGenerator
.IndexFromContainer(tabHeader);
900
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
1105
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated &&
1281
RibbonTab selectedTab = ribbon.
ItemContainerGenerator
.ContainerFromItem(ribbon.SelectedItem) as RibbonTab;
1507
RibbonTab ribbonTab = ribbon.
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonTab;
1568
RibbonTab tab =
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonTab;
1674
Debug.Assert(
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated, "Expected: containers should be generated before calling this method.");
1678
RibbonTab tab =
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonTab;
1739
if (isMinimized && ribbon.
ItemContainerGenerator
.Status != GeneratorStatus.ContainersGenerated)
1748
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
1907
selectedTab =
ItemContainerGenerator
.ContainerFromIndex(selectedIndex) as RibbonTab;
1953
return (tabHeaderItemsControl.
ItemContainerGenerator
.ContainerFromIndex(selectedIndex) as RibbonTabHeader);
2005
return tab.
ItemContainerGenerator
.IndexFromContainer(ribbonGroup);
2011
RibbonGroup group = tab.
ItemContainerGenerator
.ContainerFromIndex(index) as RibbonGroup;
2055
RibbonControl ribbonControl = quickAccessToolBar.
ItemContainerGenerator
.ContainerFromIndex(index) as RibbonControl;
2079
return quickAccessToolBar.
ItemContainerGenerator
.IndexFromContainer(ribbonControl);
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (2)
750
matchedGalleryCategory.
ItemContainerGenerator
.ContainerFromItem(matchedItem) as RibbonGalleryItem;
1347
firstGallery =
ItemContainerGenerator
.ContainerFromItem(item) as RibbonGallery;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
462
RibbonTab tab = Ribbon.
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonTab;
526
RibbonTab tab = ribbon.
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonTab;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
261
RibbonContextualTabGroup tabGroup = this.
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonContextualTabGroup;
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (2)
90
DependencyObject child =
ItemContainerGenerator
.ContainerFromIndex(i);
112
RibbonControl ribbonControl = controlGroup.
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonControl;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (25)
88
this.
ItemContainerGenerator
.StatusChanged += new EventHandler(OnItemContainerGeneratorStatusChanged);
106
Debug.Assert(_filterMenuButton.
ItemContainerGenerator
!= null);
107
_filterMenuButton.
ItemContainerGenerator
.StatusChanged -= OnFilterButtonItemContainerGeneratorStatusChanged;
114
Debug.Assert(_filterMenuButton.
ItemContainerGenerator
!= null);
115
_filterMenuButton.
ItemContainerGenerator
.StatusChanged += new EventHandler(OnFilterButtonItemContainerGeneratorStatusChanged);
333
if (this.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
349
if (_filterMenuButton.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
353
RibbonMenuItem filterItem = _filterMenuButton.
ItemContainerGenerator
.ContainerFromItem(filter) as RibbonMenuItem;
597
RibbonGalleryCategory category = (RibbonGalleryCategory)
ItemContainerGenerator
.ContainerFromIndex(i);
978
RibbonGalleryCategory category =
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonGalleryCategory;
1026
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
1048
MoveCurrentTo(CollectionView,
ItemContainerGenerator
.ItemFromContainer(category));
1168
RibbonGalleryCategory category = this.
ItemContainerGenerator
.ContainerFromItem(CollectionView.CurrentItem) as RibbonGalleryCategory;
1389
ItemContainerGenerator
.Status != GeneratorStatus.ContainersGenerated)
1396
category =
ItemContainerGenerator
.ContainerFromItem(current) as RibbonGalleryCategory;
1402
galleryItem = category.
ItemContainerGenerator
.ContainerFromIndex(index) as RibbonGalleryItem;
1427
ItemContainerGenerator
.Status != GeneratorStatus.ContainersGenerated)
1436
category =
ItemContainerGenerator
.ContainerFromItem(current) as RibbonGalleryCategory;
1445
galleryItem = category.
ItemContainerGenerator
.ContainerFromIndex(index) as RibbonGalleryItem;
2158
RibbonGalleryItem galleryItem = category.
ItemContainerGenerator
.ContainerFromIndex(index) as RibbonGalleryItem;
2223
RibbonGalleryItem galleryItem = category.
ItemContainerGenerator
.ContainerFromIndex(index) as RibbonGalleryItem;
2334
category = (RibbonGalleryCategory)this.
ItemContainerGenerator
.ContainerFromIndex(i);
2355
Debug.Assert(gallery.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated);
2371
category = (RibbonGalleryCategory)gallery.
ItemContainerGenerator
.ContainerFromIndex(i);
2534
RibbonGalleryCategory category = (RibbonGalleryCategory)gallery.
ItemContainerGenerator
.ContainerFromIndex(index);
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (4)
70
this.
ItemContainerGenerator
.StatusChanged += new EventHandler(OnItemContainerGeneratorStatusChanged);
199
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
502
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
523
RibbonGalleryItem galleryItem = this.
ItemContainerGenerator
.ContainerFromItem(CollectionView.CurrentItem) as RibbonGalleryItem;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (2)
192
object item = category.
ItemContainerGenerator
.ItemFromContainer(galleryItem);
246
object item = category.
ItemContainerGenerator
.ItemFromContainer(galleryItem);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (4)
863
RibbonControl ribbonControl =
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonControl;
1034
if (group.
ItemContainerGenerator
.Status != GeneratorStatus.ContainersGenerated)
1066
int index =
ItemContainerGenerator
.IndexFromContainer(element);
1222
DependencyObject d =
ItemContainerGenerator
.ContainerFromIndex(i);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (13)
572
FrameworkElement container = itemsControl.
ItemContainerGenerator
.ContainerFromIndex(startIndex) as FrameworkElement;
578
container = itemsControl.
ItemContainerGenerator
.ContainerFromIndex(startIndex) as FrameworkElement;
775
category = gallery.Items.Count > 0 ? gallery.
ItemContainerGenerator
.ContainerFromIndex(0) as RibbonGalleryCategory : null;
776
galleryItem = category != null && category.Items.Count > 0 ? category.
ItemContainerGenerator
.ContainerFromIndex(0) as RibbonGalleryItem : null;
783
int startCatIndex = gallery.
ItemContainerGenerator
.IndexFromContainer(category);
799
category = gallery.
ItemContainerGenerator
.ContainerFromIndex(catIndex) as RibbonGalleryCategory;
814
startItemIndex = galleryItem != null ? category.
ItemContainerGenerator
.IndexFromContainer(galleryItem) : category.Items.Count - 1;
823
highlightedGalleryItem = category.
ItemContainerGenerator
.ContainerFromIndex(startItemIndex) as RibbonGalleryItem;
843
startItemIndex = galleryItem != null ? category.
ItemContainerGenerator
.IndexFromContainer(galleryItem) : 0;
852
highlightedGalleryItem = category.
ItemContainerGenerator
.ContainerFromIndex(startItemIndex) as RibbonGalleryItem;
890
highlightedGalleryItem = category.
ItemContainerGenerator
.ContainerFromIndex(itemIndex) as RibbonGalleryItem;
2494
int itemIndex = parentItemsControl.
ItemContainerGenerator
.IndexFromContainer(menuItem);
2504
UIElement container = parentItemsControl.
ItemContainerGenerator
.ContainerFromIndex(i) as UIElement;
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (6)
709
ItemContainerGenerator
.StatusChanged += new EventHandler(OnItemContainerGeneratorStatusChanged);
790
int focusedIndex =
ItemContainerGenerator
.IndexFromContainer(e.OriginalSource as DependencyObject);
1219
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
1221
ItemContainerGenerator
.StatusChanged -= OnItemContainerGeneratorStatusChanged;
1233
if ((menuButton.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated) &&
1245
if ((menuButton.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated) &&
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (6)
347
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
349
ItemContainerGenerator
.StatusChanged -= OnItemContainerGeneratorStatusChanged;
361
if ((menuItem.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated) &&
373
if ((menuItem.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated) &&
659
ItemContainerGenerator
.StatusChanged += new EventHandler(OnItemContainerGeneratorStatusChanged);
833
int focusedIndex =
ItemContainerGenerator
.IndexFromContainer(e.OriginalSource as DependencyObject);
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (2)
591
RibbonControl ribbonControl = QuickAccessToolBar.
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonControl;
617
RibbonControl ribbonControl = QuickAccessToolBar.
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonControl;
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (5)
187
int index = ribbon.
ItemContainerGenerator
.IndexFromContainer(this);
193
return headerItemsControl.
ItemContainerGenerator
.ContainerFromIndex(index) as RibbonTabHeader;
437
nextRibbonGroup =
ItemContainerGenerator
.ContainerFromIndex(nextGroupIndex) as RibbonGroup;
565
RibbonGroup group =
ItemContainerGenerator
.ContainerFromIndex((_groupAutoResizeIndex--).Value) as RibbonGroup;
790
RibbonGroup group =
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonGroup;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (2)
129
int index = tabHeaderItemsControl.
ItemContainerGenerator
.IndexFromContainer(this);
130
return ribbon.
ItemContainerGenerator
.ContainerFromIndex(index) as RibbonTab;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (2)
137
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
161
FrameworkElement element =
ItemContainerGenerator
.ContainerFromIndex(index) as FrameworkElement;
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
145
ItemsControl childItemsControl = _attachedTo.
ItemContainerGenerator
.ContainerFromIndex(currentIndex) as ItemsControl;
506
ItemsControl childItemsControl = itemsControl.
ItemContainerGenerator
.ContainerFromItem(item) as ItemsControl;