ScrollViewer
内<ScrollViewer x:Name="svSubmisssions"
HorizontalScrollBarVisibility="Hidden"
Margin="0 10 0 0"
VerticalScrollBarVisibility="Hidden"
RelativePanel.Below="cbConsultant">
<ListView x:Name="lvSubmisssions"
Margin="0 10 0 0"
ItemTemplate="{StaticResource dtSubmissions}"
ItemsSource="{Binding SubmissionList}"
SelectionMode="Multiple"
ScrollViewer.VerticalScrollBarVisibility="Auto"
ScrollViewer.VerticalScrollMode="Enabled"
MinWidth="{Binding ElementName=page,Path=ActualWidth}"
/></ScrollViewer>
如此:
SubmissionList
我的商品来源ListView
拥有大量可用数据。
我想在 UIButton *adminButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
adminButton.frame = CGRectMake(974.0f, 0.0f, 50.0f, 50.0f);
[adminButton setBackgroundColor:[UIColor clearColor]];
[adminButton setTag:1];
[adminButton addTarget:self action:@selector(buttonPressed:) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:adminButton];
中实现延迟加载,因此只有一些数据被加载到页面上。我已经实现了分页以获取数据,因此最初它只获得10条记录。我想当用户向下滚动页面时,将显示数据库中的下一条10条记录。即第2页,所以记录11到20,所以页面现在总共有20条记录。