19 instantiations of GeneratorPosition
PresentationFramework (19)
System\Windows\Controls\DataGridCellsPanel.cs (3)
518GeneratorPosition position = (generator != null) ? generator.GeneratorPositionFromIndex(index) : new GeneratorPosition(-1, index + 1); 1151GeneratorPosition position = new GeneratorPosition(startIndex, 0); 1159generator.Remove(new GeneratorPosition(startIndex, 0), count);
System\Windows\Controls\ItemContainerGenerator.cs (9)
2132position = new GeneratorPosition(-1, 0); 2155position = new GeneratorPosition(containerIndex + offsetFromBlockStart, 0); 2160position = new GeneratorPosition(containerIndex-1, offsetFromBlockStart+1); 2174position = new GeneratorPosition(-1, 0); 2194position = new GeneratorPosition(containerIndex + offsetFromBlockStart, 0); 2243position = new GeneratorPosition(containerIndex-1, 1); 2456GeneratorPosition position = new GeneratorPosition(-1,0); 2671position = new GeneratorPosition(-1,0); 2772GeneratorPosition position = new GeneratorPosition(0, 0);
System\Windows\Controls\Panel.cs (1)
657using (generator.StartAt(new GeneratorPosition(-1, 0), GeneratorDirection.Forward))
System\Windows\Controls\Primitives\ItemsChangedEventArgs.cs (1)
44int itemUICount) : this(action, position, new GeneratorPosition(-1, 0), itemCount, itemUICount)
System\Windows\Controls\VirtualizingStackPanel.cs (5)
8890GeneratorPosition position = new GeneratorPosition(childIndex, 0); 9328GeneratorPosition position = (generator != null) ? generator.GeneratorPositionFromIndex(index) : new GeneratorPosition(-1, index + 1); 9474((IRecyclingItemContainerGenerator)generator).Recycle(new GeneratorPosition(startIndex, 0), count); 9496generator.Remove(new GeneratorPosition(startIndex, 0), count); 11258return Generator.IndexFromGeneratorPosition(new GeneratorPosition(childIndex, 0));
66 references to GeneratorPosition
PresentationFramework (65)
System\Windows\Controls\DataGridCellsPanel.cs (5)
516private static GeneratorPosition IndexToGeneratorPositionForStart(IItemContainerGenerator generator, int index, out int childIndex) 518GeneratorPosition position = (generator != null) ? generator.GeneratorPositionFromIndex(index) : new GeneratorPosition(-1, index + 1); 595GeneratorPosition startPos = IndexToGeneratorPositionForStart(generator, startIndex, out childIndex); 1151GeneratorPosition position = new GeneratorPosition(startIndex, 0); 2083private void RemoveChildRange(GeneratorPosition position, int itemCount, int itemUICount)
System\Windows\Controls\ItemContainerGenerator.cs (23)
192IDisposable IItemContainerGenerator.StartAt(GeneratorPosition position, GeneratorDirection direction) 205IDisposable IItemContainerGenerator.StartAt(GeneratorPosition position, GeneratorDirection direction, bool allowStartAtRealizedItem) 262void IItemContainerGenerator.Remove(GeneratorPosition position, int count) 270private void Remove(GeneratorPosition position, int count, bool isRecycling) 491void IRecyclingItemContainerGenerator.Recycle(GeneratorPosition position, int count) 499GeneratorPosition IItemContainerGenerator.GeneratorPositionFromIndex(int itemIndex) 501GeneratorPosition position; 516int IItemContainerGenerator.IndexFromGeneratorPosition(GeneratorPosition position) 1323internal Generator(ItemContainerGenerator factory, GeneratorPosition position, GeneratorDirection direction, bool allowStartAtRealizedItem) 1629void MoveToPosition(GeneratorPosition position, GeneratorDirection direction, bool allowStartAtRealizedItem, ref GeneratorState state) 2073GeneratorPosition position = PositionFromIndex(ItemsInternal.IndexOf(group)); 2083GeneratorPosition position = PositionFromIndex(ItemsInternal.IndexOf(group)); 2104GeneratorPosition PositionFromIndex(int itemIndex) 2106GeneratorPosition position; 2116void GetBlockAndPosition(object item, int itemIndex, bool deletedFromItems, out GeneratorPosition position, out ItemBlock block, out int offsetFromBlockStart, out int correctIndex) 2130void GetBlockAndPosition(int itemIndex, out GeneratorPosition position, out ItemBlock block, out int offsetFromBlockStart) 2168void GetBlockAndPosition(object item, bool deletedFromItems, out GeneratorPosition position, out ItemBlock block, out int offsetFromBlockStart, out int correctIndex) 2456GeneratorPosition position = new GeneratorPosition(-1,0); 2531GeneratorPosition position; 2592GeneratorPosition position; 2647GeneratorPosition position; 2653GeneratorPosition oldPosition = position; 2772GeneratorPosition position = new GeneratorPosition(0, 0);
System\Windows\Controls\Panel.cs (5)
710private void AddChildren(GeneratorPosition pos, int itemCount) 733private void RemoveChildren(GeneratorPosition pos, int containerCount) 739private void ReplaceChildren(GeneratorPosition pos, int itemCount, int containerCount) 766private void MoveChildren(GeneratorPosition fromPos, GeneratorPosition toPos, int containerCount)
System\Windows\Controls\Primitives\IItemContainerGenerator.cs (12)
35IDisposable StartAt(GeneratorPosition position, GeneratorDirection direction); 45IDisposable StartAt(GeneratorPosition position, GeneratorDirection direction, bool allowStartAtRealizedItem); 94void Remove(GeneratorPosition position, int count); 99GeneratorPosition GeneratorPositionFromIndex(int itemIndex); 104int IndexFromGeneratorPosition(GeneratorPosition position); 161if (o is GeneratorPosition) 163GeneratorPosition that = (GeneratorPosition)o; 172public static bool operator==(GeneratorPosition gp1, GeneratorPosition gp2) 180public static bool operator!=(GeneratorPosition gp1, GeneratorPosition gp2)
System\Windows\Controls\Primitives\IRecyclingItemContainerGenerator.cs (1)
34void Recycle(GeneratorPosition position, int count);
System\Windows\Controls\Primitives\ItemsChangedEventArgs.cs (7)
29GeneratorPosition position, 30GeneratorPosition oldPosition, 42GeneratorPosition position, 59public GeneratorPosition Position { get { return _position; } } 62public GeneratorPosition OldPosition { get { return _oldPosition; } } 78GeneratorPosition _position; 79GeneratorPosition _oldPosition;
System\Windows\Controls\Primitives\ToolBarPanel.cs (5)
403private void AddChildren(GeneratorPosition pos, int itemCount) 446private void RemoveChildren(GeneratorPosition pos, int containerCount) 456private void ReplaceChildren(GeneratorPosition pos, int itemCount, int containerCount) 487private void MoveChildren(GeneratorPosition fromPos, GeneratorPosition toPos, int containerCount)
System\Windows\Controls\VirtualizingStackPanel.cs (7)
1698GeneratorPosition position = IndexToGeneratorPositionForStart(itemIndex, out childIndex); 2371GeneratorPosition startPos; 8890GeneratorPosition position = new GeneratorPosition(childIndex, 0); 8991private void RemoveChildRange(GeneratorPosition position, int itemCount, int itemUICount) 9231GeneratorPosition position = Generator.GeneratorPositionFromIndex(dataIndex); 9325private GeneratorPosition IndexToGeneratorPositionForStart(int index, out int childIndex) 9328GeneratorPosition position = (generator != null) ? generator.GeneratorPositionFromIndex(index) : new GeneratorPosition(-1, index + 1);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (1)
138GeneratorPosition startPos = Generator.GeneratorPositionFromIndex(0);