NoesisGUI

ItemContainerGenerator Class

namespace Noesis | MSDN

Generates the user interface on behalf of its host, such as an ItemsControl.

Inheritance Hierarchy

ItemContainerGenerator

INDEX Class Hierarchy Index

Properties


Name Description
RO Status Gets the status of the generator

DP_ Dependency Property      RO_ Read-only


Methods

Name Description
ContainerFromIndex Returns the container corresponding to the item at the given index within the Items
ContainerFromItem Returns the container corresponding to the given item. Returns null if the item does not belong to the item collection, or if no container has been generated for it
GenerateNext Returns the container element used to display the next item
GenerateNext Returns the container element used to display the next item. The parameter isNewlyRealized will return true if the returned container is newly generated (realized); otherwise, false
GeneratorPositionFromIndex Returns the GeneratorPosition object that maps to the item at the specified index
GetItemContainerGeneratorForPanel Return the ItemContainerGenerator appropriate for use by the given panel
IndexFromContainer Given a generated container, returns the index of the corresponding item within the Items
IndexFromGeneratorPosition Returns the index that maps to the specified GeneratorPosition
ItemFromContainer Returns the item corresponding to the given container. If the element was not generated as a container for this generator's host, the method returns DependencyProperty.UnsetValue
PrepareItemContainer Prepares the specified element as the container for the corresponding item
Recycle Recycle generated elements. Equivalent to Remove() except that the generator retains this container in a list. This container will be handed back in a future call to GenerateNext(). The position must refer to a previously generated item, which means its position offset must be 0. The parameter count is the number of elements to recycle, starting at position
Remove Removes one or more generated (realized) items. The position must refer to a previously generated item, which means its position offset must be 0. The parameter count indicates the number of elements to remove, starting at specified position
RemoveAll Removes all generated (realized) items
StartAt Prepare the generator to generate, starting at the given position and direction. This method must be called before calling GenerateNext(). This method sets the generator's status to GeneratingContainers; when generation is stopped, the status changes to ContainersGenerated or Error, as appropriate
StartAt Prepare the generator to generate, starting at the given position and direction. This method must be called before calling GenerateNext(). This method sets the generator's status to GeneratingContainers; when generation is stopped, the status changes to ContainersGenerated or Error, as appropriate. The parameter allowStartAtRealizedItem specifies whether to start at a generated item or not
StartBatch Starts a container generation batch
Stop Stops generation of containers
StopBatch Stops current container generation batch

Events


Name Description
D ItemsChanged Raised by a ItemContainerGenerator to inform layouts that the items collection has changed
D StatusChanged Raised to inform controls that ItemContainerGenerator status has changed

R Routed Event      N Non-routed Event      D Delegate Event


© 2017 Noesis Technologies