Creates CollectionElement objects for each item in a collection.

Namespace:  Mindscape.WpfElements.WpfPropertyGrid
Assembly:  Mindscape.WpfElements (in Mindscape.WpfElements.dll)
Version: 3.0.0.0 (3.0.0.0)

Syntax

C#
public static IEnumerable<CollectionElement> GetCollectionElements(
	Object source,
	Predicate<Node> childFilter
)
Visual Basic (Declaration)
Public Shared Function GetCollectionElements ( _
	source As Object, _
	childFilter As Predicate(Of Node) _
) As IEnumerable(Of CollectionElement)

Parameters

source
Type: System..::.Object
The source collection - a list or dictionary.
childFilter
Type: System..::.Predicate<(Of <(Node>)>)
A callback for determining whether to show descendant nodes.

Return Value

A CollectionElement for each item in the list. If the source is not a list or dictionary, no CollectionElements are returned.

See Also