NoesisGUI
 

🔹 ItemContainerGenerator Class

namespace Noesis | MSDN

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

Inheritance Hierarchy

• ItemContainerGenerator

📚 Class Hierarchy Index

Properties

Name Description
◆ Status Gets the status of the generator

◆ Dependency Property   ◆ Reflection Property


Attached Properties

ItemContainerGenerator has no attached properties

Methods

Name Description
◆ ContainerFromIndex(int) Returns the container corresponding to the item at the given index within the Items
◆ ContainerFromItem(BaseComponent*) 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(bool&) 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(int) Returns the GeneratorPosition object that maps to the item at the specified index
◆ GetItemContainerGeneratorForPanel(Panel*) Return the ItemContainerGenerator appropriate for use by the given panel
◆ IndexFromContainer(DependencyObject*) Given a generated container, returns the index of the corresponding item within the Items
◆ IndexFromGeneratorPosition(const GeneratorPosition&) Returns the index that maps to the specified GeneratorPosition
◆ ItemFromContainer(DependencyObject*) 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(DependencyObject*) Prepares the specified element as the container for the corresponding item
◆ Recycle(const GeneratorPosition&, uint32_t) 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(const GeneratorPosition&, uint32_t) 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(const GeneratorPosition&, GeneratorDirection) 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(const GeneratorPosition&, GeneratorDirection, bool) 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
◆ ItemsChanged Raised by a ItemContainerGenerator to inform layouts that the items collection has changed
◆ StatusChanged Raised to inform controls that ItemContainerGenerator status has changed

◆ Routed Event   ◆ Non-routed Event   ◆ Delegate Event


 
© 2017 Noesis Technologies