CompositeCollection

Namespace: WellFired.Guacamole

Implements: WellFired.Guacamole.Data.Collection.INotifyCollectionChanged

Description

This class is a representation of a two tiered List of Lists. The parent list could be an ObservableCollection, as could any or all of the children. This class allows contiguous access to a list of lists or ObservableCollection of ObservableCollection. The class also implements INotifyCollectionChanged and as such can be used as in the same way as an ObservableCollection.

Public Properties

bool IsContiguousCollection
int GroupCount
object this[int i]
int Count

Events

NotifyCollectionChangedEventHandler CollectionChanged

Public Methods

IEnumerator GetEnumerator ( )
int GetEntryCountInGroup ( int group )
  CompositeCollection ( ICollection itemSource )
  CompositeCollection ( )
int IndexOf ( object item )

Breakdown

  • bool IsContiguousCollection

    Description

    This flas will tell you if the ItemSource is a grouped ItemSource (I.E. Not contiguous)

  • int GroupCount

    Description

    Number of group in the composite collection.

  • object this[int i]

    Description

    Provides array index to a one or two tiered data structure, as though the data structure was linear.

    Parameters

    i
  • int Count

    Description

    Returns the total count of this collection as though it was linear

  • NotifyCollectionChangedEventHandler CollectionChanged
  • IEnumerator GetEnumerator ( )

    Description

    The enumerator for this data type simply returns our internal representation

  • int GetEntryCountInGroup ( int group )

    Description

    Return the number of item in one group.

    Parameters

    group index of the group starting from 0.
  • CompositeCollection ( ICollection itemSource )

    Description

    Constructs a new instance of TwoTieredCollection from a List. This list can be an observable Collection, it’s children can also be ObservableCollection.

  • CompositeCollection ( )
  • int IndexOf ( object item )

    Description

    Returns the index of the passed item

    Parameters

    item