ComponentOne for WinUI
ページング
コントロール > ListView > ListViewの使い方 > ページング

Paging loads data in segments to improve performance when working with large datasets.

XAML
コードのコピー
<Grid x:Name="LayoutRoot">
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto" />
        <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
    <c1:C1ListView x:Name="listView" Grid.Row="0" SelectionMode="Single" ItemHeight="30" DisplayMemberPath="Name" Margin="10 0 10 10"/>
    <c1:C1DataPager x:Name="pager" Grid.Row="1" />
</Grid>
C#
コードのコピー
public MainWindow()
{
    InitializeComponent();
    var persons = new C1PagedDataCollection<Person>(new VirtualModeDataCollection() { PageSize = 10 }) { PageSize = 10 };
    pager.Source = persons;
    listView.ItemsSource = persons;
}