Collection Source View
Collection Source View
The Extensible Application Markup Language (XAML) proxy of a CollectionView class.
public ref class CollectionViewSource : System::Windows::DependencyObject, System::ComponentModel::ISupportInitialize, System::Windows::IWeakEventListener
public class CollectionViewSource : System.Windows.DependencyObject, System.ComponentModel.ISupportInitialize, System.Windows.IWeakEventListener
Public Class CollectionViewSource Inherits DependencyObject Implements ISupportInitialize, IWeakEventListener
CollectionViewSource is a proxy for a CollectionView class, or a class derived from CollectionView. CollectionViewSource enables XAML code to set the commonly used CollectionView properties, passing these settings to the underlying view. CollectionViewSource has a View property that holds the actual view and a Source property that holds the source collection.
You can think of a collection view as the layer on top of the binding source collection that allows you to navigate and display the collection based on sort, filter, and group queries, all without having to manipulate the underlying source collection itself. If the source collection implements the INotifyCollectionChanged interface, the changes raised by the CollectionChanged event are propagated to the views.
Because views do not change the underlying source collections, each source collection can have multiple views associated with it. For example, you may have a collection of
Task objects. With the use of views, you can display that same data in different ways. For example, on the left side of your page you may want to show tasks sorted by priority, and on the right side, grouped by area.
For more information, see the Binding to Collections section in the Data Binding Overview.
|CollectionViewSource() CollectionViewSource() CollectionViewSource()||
Initializes a new instance of the CollectionViewSource class.
|CanChangeLiveFiltering CanChangeLiveFiltering CanChangeLiveFiltering||
Gets a value that indicates whether the collection view supports turning filtering data in real time on or off.
|CanChangeLiveGrouping CanChangeLiveGrouping CanChangeLiveGrouping||
Gets a value that indicates whether the collection view supports turning grouping data in real time on or off.
|CanChangeLiveSorting CanChangeLiveSorting CanChangeLiveSorting||
Gets a value that indicates whether the collection view supports turning sorting data in real time on or off.
|CollectionViewType CollectionViewType CollectionViewType||
Gets or sets the desired view type.
|Culture Culture Culture||
Gets or sets the culture that is used for operations such as sorting and comparisons.
|DependencyObjectType DependencyObjectType DependencyObjectType||
Gets the DependencyObjectType that wraps the CLR type of this instance.(Inherited from DependencyObject)
|Dispatcher Dispatcher Dispatcher||DispatcherObject)|
|GroupDescriptions GroupDescriptions GroupDescriptions||
Gets or sets a collection of GroupDescription objects that describes how the items in the collection are grouped in the view.
|IsLiveFiltering IsLiveFiltering IsLiveFiltering||
Gets a value that indicates whether the CollectionViewSource is filtering data in real time.
|IsLiveFilteringRequested IsLiveFilteringRequested IsLiveFilteringRequested||
Gets or sets a value that indicates whether CollectionViewSource should filter the data in real time if it can.
|IsLiveGrouping IsLiveGrouping IsLiveGrouping||
Gets a value that indicates whether the CollectionViewSource groups data in real time.
|IsLiveGroupingRequested IsLiveGroupingRequested IsLiveGroupingRequested||
Gets or sets a value that indicates whether CollectionViewSource should group the data in real time if it can.
|IsLiveSorting IsLiveSorting IsLiveSorting||
Gets a value that indicates whether the CollectionViewSource sorts data in real time.
|IsLiveSortingRequested IsLiveSortingRequested IsLiveSortingRequested||
Gets or sets a value that indicates whether CollectionViewSource should sort the data in real time if it can.
|IsSealed IsSealed IsSealed||
Gets a value that indicates whether this instance is currently sealed (read-only).(Inherited from DependencyObject)
|LiveFilteringProperties LiveFilteringProperties LiveFilteringProperties||
Gets a collection of strings that specify the properties that participate in filtering data in real time.
|LiveGroupingProperties LiveGroupingProperties LiveGroupingProperties||
Gets a collection of strings that specify the properties that participate in grouping data in real time.
|LiveSortingProperties LiveSortingProperties LiveSortingProperties||
Gets a collection of strings that specify the properties that participate in sorting data in real time.
|SortDescriptions SortDescriptions SortDescriptions||
Gets or sets a collection of SortDescription objects that describes how the items in the collection are sorted in the view.
|Source Source Source||
Gets or sets the collection object from which to create this view.
|View View View||
Gets the view object that is currently associated with this instance of CollectionViewSource.
|Filter Filter Filter||
Provides filtering logic.
Explicit Interface Implementations
|ISupportInitialize.BeginInit() ISupportInitialize.BeginInit() ISupportInitialize.BeginInit()||
Signals the object that initialization is starting.
|ISupportInitialize.EndInit() ISupportInitialize.EndInit() ISupportInitialize.EndInit()||
Signals the object that initialization is complete.
|IWeakEventListener.ReceiveWeakEvent(Type, Object, EventArgs) IWeakEventListener.ReceiveWeakEvent(Type, Object, EventArgs) IWeakEventListener.ReceiveWeakEvent(Type, Object, EventArgs)||
Receives events from the centralized event manager.