This documentation is archived and is not being maintained.

IItemContainerGenerator.StartAt Method (GeneratorPosition, GeneratorDirection)

Prepares the generator to generate items, starting at the specified GeneratorPosition, and in the specified GeneratorDirection.

Namespace: System.Windows.Controls.Primitives
Assembly: PresentationFramework (in presentationframework.dll)

IDisposable StartAt (
	GeneratorPosition position,
	GeneratorDirection direction
IDisposable StartAt (
	GeneratorPosition position, 
	GeneratorDirection direction
function StartAt (
	position : GeneratorPosition, 
	direction : GeneratorDirection
) : IDisposable
You cannot use methods in XAML.



A GeneratorPosition, that specifies the position of the item to start generating items at.


A GeneratorDirection that specifies the direction which to generate items.

Return Value

An IDisposable object that tracks the lifetime of the generation process.

StartAt must be called before GenerateNext is called.

StartAt sets Status to GeneratingContainers; when the IDisposable is disposed, the status changes to ContainersGenerated or Error, as appropriate.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0