Class CollectionViewSource
Describes a collection view.
public class CollectionViewSource : DependencyObject, IBaseObject, IDisposableObject, IDisposable, ISupportInitialize, IWeakEventListener
- Inheritance
-
CollectionViewSource
- Implements
- Extension Methods
Constructors
- CollectionViewSource()
Initializes a new instance of the CollectionViewSource class.
Fields
- CanChangeLiveFilteringProperty
The DependencyProperty for the CanChangeLiveFiltering property. Flags: None Other: Read-Only Default Value: false
- CanChangeLiveGroupingProperty
The DependencyProperty for the CanChangeLiveGrouping property. Flags: None Other: Read-Only Default Value: false
- CanChangeLiveSortingProperty
The DependencyProperty for the CanChangeLiveSorting property. Flags: None Other: Read-Only Default Value: false
- CollectionViewTypeProperty
The DependencyProperty for the CollectionViewType property. Flags: none Default Value: null
- IsLiveFilteringProperty
The DependencyProperty for the IsLiveFiltering property. Flags: None Other: Read-Only Default Value: null
- IsLiveFilteringRequestedProperty
The DependencyProperty for the IsLiveFilteringRequested property. Flags: None Default Value: false
- IsLiveGroupingProperty
The DependencyProperty for the IsLiveGrouping property. Flags: None Other: Read-Only Default Value: null
- IsLiveGroupingRequestedProperty
The DependencyProperty for the IsLiveGroupingRequested property. Flags: None Default Value: false
- IsLiveSortingProperty
The DependencyProperty for the IsLiveSorting property. Flags: None Other: Read-Only Default Value: null
- IsLiveSortingRequestedProperty
The DependencyProperty for the IsLiveSortingRequested property. Flags: None Default Value: false
- SourceProperty
The DependencyProperty for the Source property. Flags: none Default Value: null
- ViewProperty
The DependencyProperty for the View property. Flags: None Other: Read-Only Default Value: null
Properties
- CanChangeLiveFiltering
Gets a value that indicates whether the underlying view allows turning live Filtering on or off.
- CanChangeLiveGrouping
Gets a value that indicates whether the underlying view allows turning live Grouping on or off.
- CanChangeLiveSorting
Gets a value that indicates whether the underlying view allows turning live sorting on or off.
- CollectionViewType
CollectionViewType is the desired type of the View.
- Culture
CultureInfo used for sorting, comparisons, etc. This property is forwarded to any collection view created from this source.
- GroupDescriptions
Collection of GroupDescriptions, describing grouping. This property is forwarded to any collection view created from this source.
- IsLiveFiltering
Gets a value that indicates whether live Filtering is enabled for the underlying view.
- IsLiveFilteringRequested
Gets or sets a value that the CollectionViewSource will use to set the IsLiveFiltering property of its views, when possible.
- IsLiveGrouping
Gets a value that indicates whether live Grouping is enabled for the underlying view.
- IsLiveGroupingRequested
Gets or sets a value that the CollectionViewSource will use to set the IsLiveGrouping property of its views, when possible.
- IsLiveSorting
Gets a value that indicates whether live sorting is enabled for the underlying view.
- IsLiveSortingRequested
Gets or sets a value that the CollectionViewSource will use to set the IsLiveSorting property of its views, when possible.
- LiveFilteringProperties
Gets a collection of strings describing the properties that trigger a live-filtering recalculation. The strings use the same format as SortDescription.PropertyName.
- LiveGroupingProperties
Gets a collection of strings describing the properties that trigger a live-grouping recalculation. The strings use the same format as PropertyGroupDescription.PropertyName.
- LiveSortingProperties
Gets a collection of strings describing the properties that trigger a live-sorting recalculation. The strings use the same format as SortDescription.PropertyName.
- SortDescriptions
Collection of SortDescriptions, describing sorting. This property is forwarded to any collection view created from this source.
- Source
Source is the underlying collection.
- View
Returns the ICollectionView currently affiliated with this CollectionViewSource.
Methods
- DeferRefresh()
Enter a Defer Cycle. Defer cycles are used to coalesce changes to the ICollectionView.
- GetDefaultView(object)
Return the default view for the given source. This view is never affiliated with any CollectionViewSource.
- IsDefaultView(ICollectionView)
Return true if the given view is the default view for its source.
- OnCollectionViewTypeChanged(Type, Type)
This method is invoked when the CollectionViewType property changes.
- OnSourceChanged(object, object)
This method is invoked when the Source property changes.
- ReceiveWeakEvent(Type, object, EventArgs)
Handle events from the centralized event table
Events
- Filter
An event requesting a filter query.