ListViewPersistenceHelper 클래스
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
public ref class ListViewPersistenceHelper sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ListViewPersistenceHelper final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ListViewPersistenceHelper
Public NotInheritable Class ListViewPersistenceHelper
- 상속
- 특성
디바이스 패밀리 |
Windows 10 (10.0.10240.0에서 도입되었습니다.)
|
API contract |
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)
|
전체 구현은 ListView 및 GridView 샘플 리포지토리의 [스크롤 위치 복원 샘플]https://github.com/microsoft/Windows-universal-samples/blob/main/Samples/XamlListView/cs/Scenario5_RestoreScrollPosition.xaml.cs)을 참조하세요.
ItemsStackPanel.ItemsUpdatingScrollMode 속성이 KeepItemsInView로 설정된 경우 ListViewPersistenceHelper는 표시되는 첫 번째 항목의 키를 사용하여 스크롤 위치를 복원하려고 시도합니다. ItemsUpdatingScrollMode가 KeepLastItemInView인 경우 마지막으로 표시되는 항목의 키를 사용하여 스크롤 위치를 복원하려고 시도합니다.
Get |
ListView의 상대 스크롤 위치를 검색합니다. |
Set |
ListView의 상대 스크롤 위치를 설정하는 비동기 작업을 시작합니다. |
제품 | 버전 |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |