DomainDataSourceView Class
[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]
Provides a collection view for the DomainDataSource.
Inheritance Hierarchy
System.Object
System.Windows.Controls.DomainDataSourceView
Namespace: System.Windows.Controls
Assembly: System.Windows.Controls.DomainServices (in System.Windows.Controls.DomainServices.dll)
Syntax
'Declaration
Public NotInheritable Class DomainDataSourceView _
Implements ICollectionView, IEnumerable, INotifyCollectionChanged, IEditableCollectionView, _
IPagedCollectionView, INotifyPropertyChanged
'Usage
Dim instance As DomainDataSourceView
public sealed class DomainDataSourceView : ICollectionView,
IEnumerable, INotifyCollectionChanged, IEditableCollectionView, IPagedCollectionView, INotifyPropertyChanged
public ref class DomainDataSourceView sealed : ICollectionView,
IEnumerable, INotifyCollectionChanged, IEditableCollectionView, IPagedCollectionView, INotifyPropertyChanged
[<SealedAttribute>]
type DomainDataSourceView =
class
interface ICollectionView
interface IEnumerable
interface INotifyCollectionChanged
interface IEditableCollectionView
interface IPagedCollectionView
interface INotifyPropertyChanged
end
public final class DomainDataSourceView implements ICollectionView, IEnumerable, INotifyCollectionChanged, IEditableCollectionView, IPagedCollectionView, INotifyPropertyChanged
The DomainDataSourceView type exposes the following members.
Properties
Name | Description | |
---|---|---|
CanAdd | Gets a value that indicates whether items can be added to the collection. | |
CanChangePage | Gets a value that indicates whether the PageIndex value can change. | |
CanRemove | Gets a value that indicates whether an item can be removed from the collection. | |
Count | Gets the number of items currently in this view. | |
CurrentItem | Gets the current item in the view. | |
CurrentPosition | Gets the ordinal position of the CurrentItem in the view. | |
IsEmpty | Gets a value that indicates whether the resulting view is empty. | |
IsPageChanging | Gets a value that indicates whether the page index is changing. | |
Item | Gets the item at the specified index. | |
PageCount | Gets the number of the pages in this view. | |
PageIndex | Gets the zero-based index of the current page. | |
PageSize | Gets or sets the number of items to display on a page. | |
TotalItemCount | Gets the total number of items in the view before paging is applied, or -1 if the total number is not known. |
Top
Methods
Name | Description | |
---|---|---|
Add | Adds the specified item to the collection. | |
Contains | Returns a value that indicates whether a given item belongs to this view. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetItemAt | Gets the item at the specified index. | |
GetType | (Inherited from Object.) | |
IndexOf | Gets the ordinal position of the specified item within the view. | |
MemberwiseClone | (Inherited from Object.) | |
MoveCurrentTo | Sets the specified item to be the CurrentItem in the view. | |
MoveCurrentToFirst | Sets the first item in the view as the CurrentItem. | |
MoveCurrentToLast | Sets the last item in the view as the CurrentItem. | |
MoveCurrentToNext | Sets the item after the CurrentItem in the view as the CurrentItem. | |
MoveCurrentToPosition | Sets the item at the specified index to be the CurrentItem in the view. | |
MoveCurrentToPrevious | Sets the item before the CurrentItem in the view as the CurrentItem. | |
MoveToFirstPage | Sets the first page as the current page. | |
MoveToLastPage | Sets the last page as the current page. | |
MoveToNextPage | Moves to the page after the current page. | |
MoveToPage | Moves to the page at the specified index. | |
MoveToPreviousPage | Moves to the page before the current page. | |
Remove | Removes the specified item from the collection. | |
RemoveAt | Removes the item at the specified position from the collection. | |
ToString | (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
CurrentChanged | Occurs after the CurrentItem has changed. | |
CurrentChanging | Occurs before the CurrentItem is changed. | |
PageChanged | Occurs after the PageIndex has changed. | |
PageChanging | Occurs before the PageIndex is changed. |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IEditableCollectionView.AddNew | Adds a new item to the underlying collection. | |
IEditableCollectionView.CanAddNew | Gets a value that indicates whether a new item can be added to the collection. | |
IEditableCollectionView.CanCancelEdit | Gets a value that indicates whether the collection view can discard pending changes and restore the original values of an edited object. | |
IEditableCollectionView.CancelEdit | Ends the edit transaction and, if possible, restores the original value of the item. | |
IEditableCollectionView.CancelNew | Ends the add transaction and discards the pending new item. | |
ICollectionView.CanFilter | Gets a value that indicates whether this view supports filtering by way of the Filter property. | |
ICollectionView.CanGroup | Gets a value that indicates whether this view supports grouping by way of the GroupDescriptions property. | |
ICollectionView.CanSort | Gets a value that indicates whether this view supports sorting by way of the SortDescriptions property. | |
INotifyCollectionChanged.CollectionChanged | Occurs when the items list of the collection has changed, or the collection is reset. | |
IEditableCollectionView.CommitEdit | Ends the edit transaction and saves the pending changes. | |
IEditableCollectionView.CommitNew | Ends the add transaction and saves the pending new item. | |
ICollectionView.Culture | Gets or sets the cultural information for any operations of the view that may differ by culture, such as sorting. | |
IEditableCollectionView.CurrentAddItem | Gets the item that is being added during the current add transaction. | |
IEditableCollectionView.CurrentEditItem | Gets the item in the collection that is being edited. | |
ICollectionView.DeferRefresh | Enters a defer cycle that you can use to merge changes to the view and delay automatic refresh. | |
IEditableCollectionView.EditItem | Begins an edit transaction on the specified item. | |
ICollectionView.Filter | Gets or sets a callback that is used to determine whether an item is appropriate for inclusion in the view. | |
IEnumerable.GetEnumerator | Returns an enumerator that iterates through a collection. | |
ICollectionView.GroupDescriptions | Gets a collection of GroupDescription objects that describe how the items in the collection are grouped in the view. | |
ICollectionView.Groups | Gets the top-level groups. | |
IEditableCollectionView.IsAddingNew | Gets a value that indicates whether an add transaction is in progress. | |
ICollectionView.IsCurrentAfterLast | Gets a value that indicates whether the CurrentItem of the view is beyond the end of the collection. | |
ICollectionView.IsCurrentBeforeFirst | Gets a value that indicates whether the CurrentItem of the view is beyond the start of the collection. | |
IEditableCollectionView.IsEditingItem | Gets a value that indicates whether an edit transaction is in progress. | |
IPagedCollectionViewItemCount | Gets the number of known items in the view before paging is applied. | |
IEditableCollectionView.NewItemPlaceholderPosition | Gets or sets the position of the new item placeholder in the collection view. | |
INotifyPropertyChanged.PropertyChanged | Occurs when a property value changes. | |
ICollectionView.Refresh | Recreates the view. | |
ICollectionView.SortDescriptions | Gets a collection of SortDescription instances that describe how the items in the collection are sorted in the view. | |
ICollectionView.SourceCollection | Gets the underlying collection. |
Top
Remarks
This view supports adding, removing, accessing, and paging the underlying data. For other standard view functions, such as sorting, filtering, and grouping, use the descriptor collections of the DomainDataSource, such as SortDescriptors or GroupDescriptors.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.