ICollectionView 인터페이스

정의

컬렉션이 현재 레코드 관리, 그룹화 및 증분 로드(데이터 가상화)를 지원할 수 있도록 합니다.

public interface class ICollectionView : IIterable<Platform::Object ^>, IObservableVector<Platform::Object ^>, IVector<Platform::Object ^>
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(4173041880, 57352, 23909, 140, 151, 123, 183, 144, 164, 35, 12)]
struct ICollectionView : IIterable<IInspectable>, IObservableVector<IInspectable>, IVector<IInspectable>
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.Guid(4173041880, 57352, 23909, 140, 151, 123, 183, 144, 164, 35, 12)]
public interface ICollectionView : IEnumerable<object>, IList<object>, IObservableVector<object>
Public Interface ICollectionView
Implements IEnumerable(Of Object), IList(Of Object), IObservableVector(Of Object)
특성
구현
IEnumerable<Object> IIterable<Platform::Object> IIterable<IInspectable> IIterable<T> IEnumerable<T> IList<Object> IVector<Platform::Object> IVector<IInspectable> IVector<T> IList<T> IObservableVector<Object> IObservableVector<Platform::Object> IObservableVector<IInspectable>

설명

ICollectionView는 컬렉션을 나타내는 데 사용되는 인터페이스입니다. 항목 선택과 같은 속성에 대한 통화를 유지하는 역할을 합니다.

데이터 원본에서 선택 통화에 대한 사용자 지정 동작을 구현하려면 데이터 원본이 ICollectionView를 직접 구현하는 대신 ICollectionViewFactory 를 구현해야 합니다. CollectionViewSource.Source 속성을 ICollectionViewFactory로 설정할 수 있지만 ICollectionView로 설정하면 예외가 throw됩니다.

CollectionGroups 속성은 IObservableVector 형식이지만 이러한 개체는 ICollectionViewGroup을 구현해야 합니다.

인터페이스 상속

ICollectionView는 IObservableVector, IVectorIIterable 를 상속합니다. ICollectionView를 구현하는 형식은 IObservableVector의 인터페이스 멤버와 C++ 사용의 경우 IVectorIIterable 또는 Microsoft .NET 사용에 대한 IListIEnumerable 을 구현합니다.

속성

CollectionGroups

뷰와 연결된 컬렉션 그룹을 반환합니다.

CurrentItem

뷰의 현재 항목을 가져옵니다.

CurrentPosition

보기 내에서 CurrentItem 의 서수 위치를 가져옵니다.

HasMoreItems

증분 로드 구현을 지원하는 sentinel 값을 가져옵니다. LoadMoreItemsAsync도 참조하세요.

IsCurrentAfterLast

뷰의 CurrentItem 이 컬렉션의 끝을 벗어나는지 여부를 나타내는 값을 가져옵니다.

IsCurrentBeforeFirst

뷰의 CurrentItem 이 컬렉션의 시작 부분을 벗어나는지 여부를 나타내는 값을 가져옵니다.

메서드

LoadMoreItemsAsync(UInt32)

보기에서 증분 로드를 초기화합니다.

MoveCurrentTo(Object)

지정된 항목을 보기의 CurrentItem 으로 설정합니다.

MoveCurrentToFirst()

보기의 첫 번째 항목을 CurrentItem으로 설정합니다.

MoveCurrentToLast()

보기의 마지막 항목을 CurrentItem으로 설정합니다.

MoveCurrentToNext()

보기에서 CurrentItem 뒤의 항목을 CurrentItem으로 설정합니다.

MoveCurrentToPosition(Int32)

지정된 인덱스에서 항목을 보기의 CurrentItem 으로 설정합니다.

MoveCurrentToPrevious()

보기에서 CurrentItem 앞에 있는 항목을 CurrentItem으로 설정합니다.

이벤트

CurrentChanged

이 인터페이스를 구현할 때 현재 항목이 변경된 후 이 이벤트를 실행합니다.

CurrentChanging

이 인터페이스를 구현할 때 현재 항목을 변경하기 전에 이 이벤트를 실행합니다. 이벤트 처리기는 이 이벤트를 취소할 수 있습니다.

적용 대상

추가 정보