Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DomainDataSourceView Class

WCF RIA Services

[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.

System.Object
  System.Windows.Controls.DomainDataSourceView

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.DomainServices (in System.Windows.Controls.DomainServices.dll)
public sealed class DomainDataSourceView : ICollectionView, 
	IEnumerable, INotifyCollectionChanged, IEditableCollectionView, IPagedCollectionView, INotifyPropertyChanged

The DomainDataSourceView type exposes the following members.

  NameDescription
Public propertyCanAddGets a value that indicates whether items can be added to the collection.
Public propertyCanChangePageGets a value that indicates whether the PageIndex value can change.
Public propertyCanRemoveGets a value that indicates whether an item can be removed from the collection.
Public propertyCountGets the number of items currently in this view.
Public propertyCurrentItemGets the current item in the view.
Public propertyCurrentPositionGets the ordinal position of the CurrentItem in the view.
Public propertyIsEmptyGets a value that indicates whether the resulting view is empty.
Public propertyIsPageChangingGets a value that indicates whether the page index is changing.
Public propertyItemGets the item at the specified index.
Public propertyPageCountGets the number of the pages in this view.
Public propertyPageIndexGets the zero-based index of the current page.
Public propertyPageSizeGets or sets the number of items to display on a page.
Public propertyTotalItemCountGets the total number of items in the view before paging is applied, or -1 if the total number is not known.
Top
  NameDescription
Public methodAddAdds the specified item to the collection.
Public methodContainsReturns a value that indicates whether a given item belongs to this view.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetItemAtGets the item at the specified index.
Public methodGetType (Inherited from Object.)
Public methodIndexOfGets the ordinal position of the specified item within the view.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodMoveCurrentToSets the specified item to be the CurrentItem in the view.
Public methodMoveCurrentToFirstSets the first item in the view as the CurrentItem.
Public methodMoveCurrentToLastSets the last item in the view as the CurrentItem.
Public methodMoveCurrentToNextSets the item after the CurrentItem in the view as the CurrentItem.
Public methodMoveCurrentToPositionSets the item at the specified index to be the CurrentItem in the view.
Public methodMoveCurrentToPreviousSets the item before the CurrentItem in the view as the CurrentItem.
Public methodMoveToFirstPageSets the first page as the current page.
Public methodMoveToLastPageSets the last page as the current page.
Public methodMoveToNextPageMoves to the page after the current page.
Public methodMoveToPageMoves to the page at the specified index.
Public methodMoveToPreviousPageMoves to the page before the current page.
Public methodRemoveRemoves the specified item from the collection.
Public methodRemoveAtRemoves the item at the specified position from the collection.
Public methodToString (Inherited from Object.)
Top
  NameDescription
Public eventCurrentChangedOccurs after the CurrentItem has changed.
Public eventCurrentChangingOccurs before the CurrentItem is changed.
Public eventPageChangedOccurs after the PageIndex has changed.
Public eventPageChangingOccurs before the PageIndex is changed.
Top
  NameDescription
Explicit interface implemetationPrivate methodIEditableCollectionView.AddNewAdds a new item to the underlying collection.
Explicit interface implemetationPrivate propertyIEditableCollectionView.CanAddNewGets a value that indicates whether a new item can be added to the collection.
Explicit interface implemetationPrivate propertyIEditableCollectionView.CanCancelEditGets a value that indicates whether the collection view can discard pending changes and restore the original values of an edited object.
Explicit interface implemetationPrivate methodIEditableCollectionView.CancelEditEnds the edit transaction and, if possible, restores the original value of the item.
Explicit interface implemetationPrivate methodIEditableCollectionView.CancelNewEnds the add transaction and discards the pending new item.
Explicit interface implemetationPrivate propertyICollectionView.CanFilterGets a value that indicates whether this view supports filtering by way of the Filter property.
Explicit interface implemetationPrivate propertyICollectionView.CanGroupGets a value that indicates whether this view supports grouping by way of the GroupDescriptions property.
Explicit interface implemetationPrivate propertyICollectionView.CanSortGets a value that indicates whether this view supports sorting by way of the SortDescriptions property.
Explicit interface implemetationPrivate eventINotifyCollectionChanged.CollectionChangedOccurs when the items list of the collection has changed, or the collection is reset.
Explicit interface implemetationPrivate methodIEditableCollectionView.CommitEditEnds the edit transaction and saves the pending changes.
Explicit interface implemetationPrivate methodIEditableCollectionView.CommitNewEnds the add transaction and saves the pending new item.
Explicit interface implemetationPrivate propertyICollectionView.CultureGets or sets the cultural information for any operations of the view that may differ by culture, such as sorting.
Explicit interface implemetationPrivate propertyIEditableCollectionView.CurrentAddItemGets the item that is being added during the current add transaction.
Explicit interface implemetationPrivate propertyIEditableCollectionView.CurrentEditItemGets the item in the collection that is being edited.
Explicit interface implemetationPrivate methodICollectionView.DeferRefreshEnters a defer cycle that you can use to merge changes to the view and delay automatic refresh.
Explicit interface implemetationPrivate methodIEditableCollectionView.EditItemBegins an edit transaction on the specified item.
Explicit interface implemetationPrivate propertyICollectionView.FilterGets or sets a callback that is used to determine whether an item is appropriate for inclusion in the view.
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorReturns an enumerator that iterates through a collection.
Explicit interface implemetationPrivate propertyICollectionView.GroupDescriptionsGets a collection of GroupDescription objects that describe how the items in the collection are grouped in the view.
Explicit interface implemetationPrivate propertyICollectionView.GroupsGets the top-level groups.
Explicit interface implemetationPrivate propertyIEditableCollectionView.IsAddingNewGets a value that indicates whether an add transaction is in progress.
Explicit interface implemetationPrivate propertyICollectionView.IsCurrentAfterLastGets a value that indicates whether the CurrentItem of the view is beyond the end of the collection.
Explicit interface implemetationPrivate propertyICollectionView.IsCurrentBeforeFirstGets a value that indicates whether the CurrentItem of the view is beyond the start of the collection.
Explicit interface implemetationPrivate propertyIEditableCollectionView.IsEditingItemGets a value that indicates whether an edit transaction is in progress.
Explicit interface implemetationPrivate propertyIPagedCollectionViewItemCountGets the number of known items in the view before paging is applied.
Explicit interface implemetationPrivate propertyIEditableCollectionView.NewItemPlaceholderPositionGets or sets the position of the new item placeholder in the collection view.
Explicit interface implemetationPrivate eventINotifyPropertyChanged.PropertyChangedOccurs when a property value changes.
Explicit interface implemetationPrivate methodICollectionView.RefreshRecreates the view.
Explicit interface implemetationPrivate propertyICollectionView.SortDescriptionsGets a collection of SortDescription instances that describe how the items in the collection are sorted in the view.
Explicit interface implemetationPrivate propertyICollectionView.SourceCollectionGets the underlying collection.
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.