204 references to ItemContainerGenerator
Microsoft.VisualStudio.LanguageServices (4)
ChangeSignature\ChangeSignatureDialog.xaml.cs (2)
207
if (Members.
ItemContainerGenerator
.ContainerFromIndex(Members.SelectedIndex) is not DataGridRow row)
210
row = Members.
ItemContainerGenerator
.ContainerFromIndex(Members.SelectedIndex) as DataGridRow;
PickMembers\PickMembersDialog.xaml.cs (2)
111
if (Members.
ItemContainerGenerator
.ContainerFromIndex(Members.SelectedIndex) is not ListViewItem row)
114
row = Members.
ItemContainerGenerator
.ContainerFromIndex(Members.SelectedIndex) as ListViewItem;
PresentationFramework (97)
System\Windows\Automation\Peers\ComboBoxAutomationPeer.cs (1)
121
if (owner.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (2)
199
ListViewItem lvi = _listview.
ItemContainerGenerator
.ContainerFromIndex(row) as ListViewItem;
209
lvi = _listview.
ItemContainerGenerator
.ContainerFromIndex(row) as ListViewItem;
System\Windows\Automation\Peers\GridViewItemAutomationPeer.cs (2)
43
ListViewItem lvi = listview.
ItemContainerGenerator
.ContainerFromItem(item) as ListViewItem;
53
int row = listview.
ItemContainerGenerator
.IndexFromContainer(lvi);
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (2)
206
object item = itemsControl.
ItemContainerGenerator
.ItemFromContainer(child);
292
CollectionViewGroupInternal cvg = itemsControl.
ItemContainerGenerator
.ItemFromContainer(Owner) as CollectionViewGroupInternal;
System\Windows\Automation\Peers\ItemAutomationPeer.cs (2)
97
wrapper = owner.
ItemContainerGenerator
.ContainerFromItem(item) as UIElement;
739
if (parent.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
153
dataItem = (d != null) ? owner.
ItemContainerGenerator
.ItemFromContainer(d) : null;
764
((IItemContainerGenerator)_itemsControl.
ItemContainerGenerator
).PrepareItemContainer(_container);
System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (1)
175
UIElement uiElement = owner.
ItemContainerGenerator
.ContainerFromIndex(i) as UIElement;
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
48
StatusBarItem item = itemscontrol.
ItemContainerGenerator
.ContainerFromItem(obj) as StatusBarItem;
System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (1)
73
TreeViewItem treeViewItem = owner.
ItemContainerGenerator
.ContainerFromIndex(i) as TreeViewItem;
System\Windows\Automation\Peers\TreeViewDataItemAutomationPeer.cs (1)
305
if (parent.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
System\Windows\Controls\ComboBox.cs (2)
1252
object item =
ItemContainerGenerator
.ItemFromContainer(comboBoxItem);
1571
DependencyObject container =
ItemContainerGenerator
.ContainerFromIndex(i);
System\Windows\Controls\DataGrid.cs (16)
452
if (ColumnHeadersPresenter != null && ColumnHeadersPresenter.
ItemContainerGenerator
!= null)
454
return (DataGridColumnHeader)ColumnHeadersPresenter.
ItemContainerGenerator
.ContainerFromIndex(columnIndex);
614
foreach (DependencyObject container in
ItemContainerGenerator
.RecyclableContainers)
1303
var row = (DataGridRow)
ItemContainerGenerator
.ContainerFromItem(item);
1323
var row = (DataGridRow)
ItemContainerGenerator
.ContainerFromItem(item);
1349
var row = (DataGridRow)
ItemContainerGenerator
.ContainerFromItem(item);
1547
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
1584
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
1810
DataGridRow row = (DataGridRow)
ItemContainerGenerator
.ContainerFromIndex(info.Index);
2151
newItemIndex =
ItemContainerGenerator
.IndexFromContainer(cell.RowOwner);
3096
(currentIndex < 0 || currentIndex ==
ItemContainerGenerator
.IndexFromContainer(row))
3808
DataGridRow newItemPlaceholderRow = (DataGridRow)
ItemContainerGenerator
.ContainerFromItem(CollectionView.NewItemPlaceholder);
5628
CollectionViewGroupInternal cvg =
ItemContainerGenerator
.ItemFromContainer(currentGroupItem) as CollectionViewGroupInternal;
6430
row =
ItemContainerGenerator
.ContainerFromIndex(i) as DataGridRow;
6479
row =
ItemContainerGenerator
.ContainerFromIndex(i) as DataGridRow;
7051
DataGridRow row = (DataGridRow)
ItemContainerGenerator
.ContainerFromItem(item);
System\Windows\Controls\DataGridCell.cs (1)
79
PrepareCell(item, ownerRow, cellsPresenter.
ItemContainerGenerator
.IndexFromContainer(this));
System\Windows\Controls\DataGridCellsPanel.cs (2)
888
ItemContainerGenerator generator = parentPresenter.
ItemContainerGenerator
;
1787
IItemContainerGenerator generator = parentPresenter.
ItemContainerGenerator
as IItemContainerGenerator;
System\Windows\Controls\DataGridColumn.cs (1)
619
DataGridRow row = _dataGridOwner.
ItemContainerGenerator
.ContainerFromItem(dataItem) as DataGridRow;
System\Windows\Controls\DataGridRow.cs (2)
1315
return dataGridOwner.
ItemContainerGenerator
.IndexFromContainer(this);
1358
return cellsPresenter.
ItemContainerGenerator
.ContainerFromIndex(index) as DataGridCell;
System\Windows\Controls\GroupItem.cs (1)
59
Helper.SetItemValuesOnContainer(itemsControl, _expander, itemsControl.
ItemContainerGenerator
.ItemFromContainer(this));
System\Windows\Controls\ItemsControl.cs (19)
894
ItemContainerGenerator
.OnPanelChanged();
1067
ItemContainerGenerator
.ChangeAlternationCount();
2600
FrameworkElement container =
ItemContainerGenerator
.ContainerFromIndex(startIndex) as FrameworkElement;
2668
container =
ItemContainerGenerator
.ContainerFromIndex(index) as FrameworkElement;
2678
container =
ItemContainerGenerator
.ContainerFromIndex(index) as FrameworkElement;
2764
object firstItem = GetFirstItemOnCurrentPage(
ItemContainerGenerator
.ContainerFromItem(startingItem) as FrameworkElement,
2919
FrameworkElement container =
ItemContainerGenerator
.ContainerFromItem(item) as FrameworkElement;
3200
object item = itemsControl.
ItemContainerGenerator
.ItemFromContainer(focusedElement);
3443
item = itemsControl.
ItemContainerGenerator
.ItemFromContainer(element);
3534
object item =
ItemContainerGenerator
.ItemFromContainer(container);
3573
return new ItemInfo(item, container, index).Refresh(
ItemContainerGenerator
);
3579
return NewItemInfo(
ItemContainerGenerator
.ItemFromContainer(container), container,
ItemContainerGenerator
.IndexFromContainer(container));
3585
return (index >= 0) ? NewItemInfo(Items[index],
ItemContainerGenerator
.ContainerFromIndex(index), index)
3603
container =
ItemContainerGenerator
.ContainerFromIndex(info.Index);
3608
container =
ItemContainerGenerator
.ContainerFromItem(info.Item);
3675
container =
ItemContainerGenerator
.ContainerFromIndex(index);
3681
ItemContainerGenerator
.FindItem(
3813
info.Refresh(
ItemContainerGenerator
);
System\Windows\Controls\ItemsPresenter.cs (1)
212
generator = owner.
ItemContainerGenerator
;
System\Windows\Controls\ListBox.cs (3)
121
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
942
return
ItemContainerGenerator
.IndexFromContainer(listItem);
947
return
ItemContainerGenerator
.ContainerFromIndex(index) as ListBoxItem;
System\Windows\Controls\ListView.cs (1)
263
ItemContainerGenerator
.Refresh();
System\Windows\Controls\Menu.cs (1)
344
MenuItem menuItem =
ItemContainerGenerator
.ContainerFromIndex(i) as MenuItem;
System\Windows\Controls\MenuItem.cs (2)
359
object originalItem = parent.
ItemContainerGenerator
.ItemFromContainer(menuItem);
625
MenuItem subItem = menuItem.
ItemContainerGenerator
.ContainerFromIndex(i) as MenuItem;
System\Windows\Controls\Panel.cs (2)
256
IItemContainerGenerator generator = itemsControl.
ItemContainerGenerator
as IItemContainerGenerator;
578
IItemContainerGenerator itemsOwnerGenerator = itemsOwner.
ItemContainerGenerator
;
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (2)
161
cell = (DataGridCell)
ItemContainerGenerator
.ContainerFromIndex(i);
179
cell = (DataGridCell)
ItemContainerGenerator
.ContainerFromIndex(i);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
265
int index =
ItemContainerGenerator
.IndexFromContainer(container);
System\Windows\Controls\Primitives\DataGridRowHeader.cs (2)
689
int index = dataGrid.
ItemContainerGenerator
.IndexFromContainer(row);
692
return (DataGridRow)dataGrid.
ItemContainerGenerator
.ContainerFromIndex(index - 1);
System\Windows\Controls\Primitives\DataGridRowsPresenter.cs (1)
49
IItemContainerGenerator generator = dataGrid.
ItemContainerGenerator
as IItemContainerGenerator;
System\Windows\Controls\Primitives\MenuBase.cs (1)
688
MenuItem mi = menu.
ItemContainerGenerator
.ContainerFromIndex(i) as MenuItem;
System\Windows\Controls\Primitives\Selector.cs (3)
46
ItemContainerGenerator
.StatusChanged += new EventHandler(OnGeneratorStatusChanged);
1481
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
1870
object data = itemsControl.
ItemContainerGenerator
.ItemFromContainer(o);
System\Windows\Controls\TabControl.cs (9)
82
TabItem ti = tc.
ItemContainerGenerator
.ContainerFromIndex(i) as TabItem;
317
ItemContainerGenerator
.StatusChanged += new EventHandler(OnGeneratorStatusChanged);
419
startIndex =
ItemContainerGenerator
.IndexFromContainer(
ItemContainerGenerator
.ContainerFromItem(SelectedItem));
461
TabItem tabItem =
ItemContainerGenerator
.ContainerFromIndex(index) as TabItem;
500
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
521
tabItem =
ItemContainerGenerator
.ContainerFromIndex(SelectedIndex) as TabItem;
527
!ItemsControl.EqualsEx(selectedItem,
ItemContainerGenerator
.ItemFromContainer(tabItem)))
529
tabItem =
ItemContainerGenerator
.ContainerFromItem(selectedItem) as TabItem;
System\Windows\Controls\TreeView.cs (2)
350
ChangeSelection(collapsed.ParentItemsControl.
ItemContainerGenerator
.ItemFromContainer(collapsed), collapsed, true);
463
container =
ItemContainerGenerator
.ContainerFromIndex(0) as TreeViewItem;
System\Windows\Controls\TreeViewItem.cs (3)
933
ItemContainerGenerator
.RemoveAllInternal(true /*saveRecycleQueue*/);
1043
subitem = (TreeViewItem)item.
ItemContainerGenerator
.ContainerFromIndex(i);
1047
subitem = (TreeViewItem)item.
ItemContainerGenerator
.ContainerFromIndex(i);
System\Windows\Controls\VirtualizingStackPanel.cs (4)
4178
parentItem = itemsControl.
ItemContainerGenerator
.ItemFromContainer(groupItem);
4185
parentItem = parentItemsControl.
ItemContainerGenerator
.ItemFromContainer(itemsControl);
9125
item = itemsControl.
ItemContainerGenerator
.ItemFromContainer(child);
9448
CleanUpVirtualizedItemEventArgs e = new CleanUpVirtualizedItemEventArgs(itemsControl.
ItemContainerGenerator
.ItemFromContainer(child), child);
System.Windows.Controls.Ribbon (103)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonContextualTabGroupsPanel.cs (1)
176
IItemContainerGenerator generator = groupHeaderItemsControl.
ItemContainerGenerator
as IItemContainerGenerator;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (1)
71
IItemContainerGenerator generator = itemsControl.
ItemContainerGenerator
as IItemContainerGenerator;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (3)
278
IItemContainerGenerator generator = tabHeaderItemsControl.
ItemContainerGenerator
as IItemContainerGenerator;
719
if (groupHeaderItemsControl.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
724
RibbonContextualTabGroup groupHeader = groupHeaderItemsControl.
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonContextualTabGroup;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTitlePanel.cs (1)
68
if (groupHeaderItemsControl.
ItemContainerGenerator
.Status != GeneratorStatus.ContainersGenerated)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (17)
139
ItemContainerGenerator
.StatusChanged += new EventHandler(OnItemContainerGeneratorStatusChanged);
788
int index = _tabHeaderItemsControl.
ItemContainerGenerator
.IndexFromContainer(tabHeader);
897
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
1102
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated &&
1278
RibbonTab selectedTab = ribbon.
ItemContainerGenerator
.ContainerFromItem(ribbon.SelectedItem) as RibbonTab;
1504
RibbonTab ribbonTab = ribbon.
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonTab;
1565
RibbonTab tab =
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonTab;
1671
Debug.Assert(
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated, "Expected: containers should be generated before calling this method.");
1675
RibbonTab tab =
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonTab;
1736
if (isMinimized && ribbon.
ItemContainerGenerator
.Status != GeneratorStatus.ContainersGenerated)
1745
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
1904
selectedTab =
ItemContainerGenerator
.ContainerFromIndex(selectedIndex) as RibbonTab;
1950
return (tabHeaderItemsControl.
ItemContainerGenerator
.ContainerFromIndex(selectedIndex) as RibbonTabHeader);
2002
return tab.
ItemContainerGenerator
.IndexFromContainer(ribbonGroup);
2008
RibbonGroup group = tab.
ItemContainerGenerator
.ContainerFromIndex(index) as RibbonGroup;
2052
RibbonControl ribbonControl = quickAccessToolBar.
ItemContainerGenerator
.ContainerFromIndex(index) as RibbonControl;
2076
return quickAccessToolBar.
ItemContainerGenerator
.IndexFromContainer(ribbonControl);
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (2)
748
matchedGalleryCategory.
ItemContainerGenerator
.ContainerFromItem(matchedItem) as RibbonGalleryItem;
1345
firstGallery =
ItemContainerGenerator
.ContainerFromItem(item) as RibbonGallery;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (2)
460
RibbonTab tab = Ribbon.
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonTab;
524
RibbonTab tab = ribbon.
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonTab;
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
259
RibbonContextualTabGroup tabGroup = this.
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonContextualTabGroup;
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (2)
87
DependencyObject child =
ItemContainerGenerator
.ContainerFromIndex(i);
109
RibbonControl ribbonControl = controlGroup.
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonControl;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (25)
86
this.
ItemContainerGenerator
.StatusChanged += new EventHandler(OnItemContainerGeneratorStatusChanged);
104
Debug.Assert(_filterMenuButton.
ItemContainerGenerator
!= null);
105
_filterMenuButton.
ItemContainerGenerator
.StatusChanged -= OnFilterButtonItemContainerGeneratorStatusChanged;
112
Debug.Assert(_filterMenuButton.
ItemContainerGenerator
!= null);
113
_filterMenuButton.
ItemContainerGenerator
.StatusChanged += new EventHandler(OnFilterButtonItemContainerGeneratorStatusChanged);
331
if (this.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
347
if (_filterMenuButton.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
351
RibbonMenuItem filterItem = _filterMenuButton.
ItemContainerGenerator
.ContainerFromItem(filter) as RibbonMenuItem;
595
RibbonGalleryCategory category = (RibbonGalleryCategory)
ItemContainerGenerator
.ContainerFromIndex(i);
976
RibbonGalleryCategory category =
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonGalleryCategory;
1024
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
1046
MoveCurrentTo(CollectionView,
ItemContainerGenerator
.ItemFromContainer(category));
1166
RibbonGalleryCategory category = this.
ItemContainerGenerator
.ContainerFromItem(CollectionView.CurrentItem) as RibbonGalleryCategory;
1387
ItemContainerGenerator
.Status != GeneratorStatus.ContainersGenerated)
1394
category =
ItemContainerGenerator
.ContainerFromItem(current) as RibbonGalleryCategory;
1400
galleryItem = category.
ItemContainerGenerator
.ContainerFromIndex(index) as RibbonGalleryItem;
1425
ItemContainerGenerator
.Status != GeneratorStatus.ContainersGenerated)
1434
category =
ItemContainerGenerator
.ContainerFromItem(current) as RibbonGalleryCategory;
1443
galleryItem = category.
ItemContainerGenerator
.ContainerFromIndex(index) as RibbonGalleryItem;
2156
RibbonGalleryItem galleryItem = category.
ItemContainerGenerator
.ContainerFromIndex(index) as RibbonGalleryItem;
2221
RibbonGalleryItem galleryItem = category.
ItemContainerGenerator
.ContainerFromIndex(index) as RibbonGalleryItem;
2332
category = (RibbonGalleryCategory)this.
ItemContainerGenerator
.ContainerFromIndex(i);
2353
Debug.Assert(gallery.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated);
2369
category = (RibbonGalleryCategory)gallery.
ItemContainerGenerator
.ContainerFromIndex(i);
2532
RibbonGalleryCategory category = (RibbonGalleryCategory)gallery.
ItemContainerGenerator
.ContainerFromIndex(index);
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (4)
65
this.
ItemContainerGenerator
.StatusChanged += new EventHandler(OnItemContainerGeneratorStatusChanged);
194
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
497
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
518
RibbonGalleryItem galleryItem = this.
ItemContainerGenerator
.ContainerFromItem(CollectionView.CurrentItem) as RibbonGalleryItem;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (2)
190
object item = category.
ItemContainerGenerator
.ItemFromContainer(galleryItem);
244
object item = category.
ItemContainerGenerator
.ItemFromContainer(galleryItem);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (4)
860
RibbonControl ribbonControl =
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonControl;
1031
if (group.
ItemContainerGenerator
.Status != GeneratorStatus.ContainersGenerated)
1063
int index =
ItemContainerGenerator
.IndexFromContainer(element);
1219
DependencyObject d =
ItemContainerGenerator
.ContainerFromIndex(i);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (13)
567
FrameworkElement container = itemsControl.
ItemContainerGenerator
.ContainerFromIndex(startIndex) as FrameworkElement;
573
container = itemsControl.
ItemContainerGenerator
.ContainerFromIndex(startIndex) as FrameworkElement;
770
category = gallery.Items.Count > 0 ? gallery.
ItemContainerGenerator
.ContainerFromIndex(0) as RibbonGalleryCategory : null;
771
galleryItem = category != null && category.Items.Count > 0 ? category.
ItemContainerGenerator
.ContainerFromIndex(0) as RibbonGalleryItem : null;
778
int startCatIndex = gallery.
ItemContainerGenerator
.IndexFromContainer(category);
794
category = gallery.
ItemContainerGenerator
.ContainerFromIndex(catIndex) as RibbonGalleryCategory;
809
startItemIndex = galleryItem != null ? category.
ItemContainerGenerator
.IndexFromContainer(galleryItem) : category.Items.Count - 1;
818
highlightedGalleryItem = category.
ItemContainerGenerator
.ContainerFromIndex(startItemIndex) as RibbonGalleryItem;
838
startItemIndex = galleryItem != null ? category.
ItemContainerGenerator
.IndexFromContainer(galleryItem) : 0;
847
highlightedGalleryItem = category.
ItemContainerGenerator
.ContainerFromIndex(startItemIndex) as RibbonGalleryItem;
885
highlightedGalleryItem = category.
ItemContainerGenerator
.ContainerFromIndex(itemIndex) as RibbonGalleryItem;
2489
int itemIndex = parentItemsControl.
ItemContainerGenerator
.IndexFromContainer(menuItem);
2499
UIElement container = parentItemsControl.
ItemContainerGenerator
.ContainerFromIndex(i) as UIElement;
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (6)
706
ItemContainerGenerator
.StatusChanged += new EventHandler(OnItemContainerGeneratorStatusChanged);
787
int focusedIndex =
ItemContainerGenerator
.IndexFromContainer(e.OriginalSource as DependencyObject);
1216
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
1218
ItemContainerGenerator
.StatusChanged -= OnItemContainerGeneratorStatusChanged;
1230
if ((menuButton.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated) &&
1242
if ((menuButton.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated) &&
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (6)
344
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
346
ItemContainerGenerator
.StatusChanged -= OnItemContainerGeneratorStatusChanged;
358
if ((menuItem.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated) &&
370
if ((menuItem.
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated) &&
656
ItemContainerGenerator
.StatusChanged += new EventHandler(OnItemContainerGeneratorStatusChanged);
830
int focusedIndex =
ItemContainerGenerator
.IndexFromContainer(e.OriginalSource as DependencyObject);
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (2)
586
RibbonControl ribbonControl = QuickAccessToolBar.
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonControl;
612
RibbonControl ribbonControl = QuickAccessToolBar.
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonControl;
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (5)
185
int index = ribbon.
ItemContainerGenerator
.IndexFromContainer(this);
191
return headerItemsControl.
ItemContainerGenerator
.ContainerFromIndex(index) as RibbonTabHeader;
435
nextRibbonGroup =
ItemContainerGenerator
.ContainerFromIndex(nextGroupIndex) as RibbonGroup;
563
RibbonGroup group =
ItemContainerGenerator
.ContainerFromIndex((_groupAutoResizeIndex--).Value) as RibbonGroup;
788
RibbonGroup group =
ItemContainerGenerator
.ContainerFromIndex(i) as RibbonGroup;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (2)
127
int index = tabHeaderItemsControl.
ItemContainerGenerator
.IndexFromContainer(this);
128
return ribbon.
ItemContainerGenerator
.ContainerFromIndex(index) as RibbonTab;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (2)
135
if (
ItemContainerGenerator
.Status == GeneratorStatus.ContainersGenerated)
159
FrameworkElement element =
ItemContainerGenerator
.ContainerFromIndex(index) as FrameworkElement;
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
142
ItemsControl childItemsControl = _attachedTo.
ItemContainerGenerator
.ContainerFromIndex(currentIndex) as ItemsControl;
503
ItemsControl childItemsControl = itemsControl.
ItemContainerGenerator
.ContainerFromItem(item) as ItemsControl;