'Declaration Public MustOverride ReadOnly Property AllValues As IEnumerable(Of ValueEntry)
public abstract IEnumerable<ValueEntry> AllValues {get;}
AllValues property returns the set of values a member of which is currently being evaluated. This is used to evaluate conditions that require information regarding the associated set of values, for example a condition that matches values that are 'above average' require the average attribute of the set of values associated with the current value being evaluated. Such a condition would calculate the average of 'AllValues' and compare the value being evaluated with that average.
For example, in XamDataGrid when 'AboveAverage' filter condition is selected on a field, AllValues will be all field values of the record collection associated with the current field value that's being evaluated. Note that once you calculate the particular attribute of the set of values (in our example the average), you can cache the value using the SetUserCache method which you can retrieve using GetUserCache for reuse in successive evalulation of other values in the set. GetUserData will return null initially and once you cache it using the SetUserCache, it will continue returning that value for evaluation of all other values in the set. When values in the set changes, the context owner (for example the data presenter) will make sure to clear the cache.
Note that accessing AllValues will cause the re-evaluation of filters on all items even if data of one item changes. For example, in XamDataGrid, with 'AboveAverage' as the condition, when a cell value in a record changes, the 'average' of all values is changed and therefore all records have to be re-evaluated to make sure that they are still above the new average. Also, in 4.5 or later of the framework, in order to support cross thread updating and access via a CollectionView refer to the ThreadSynchronizationCollection documentation.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2