Tag: 无限滚动

WP 8.1 ISupportIncrementalLoading LoadMoreItemsAsync不断被无休止地调用

我试图使用以下示例实现无限滚动 http://www.davidbritch.com/2014/05/data-virtualisation-using.html 问题是在我的情况下, LoadMoreItemsAsync不断被无休止地调用 。 我正在集线器上开发这个(不确定这是否有所不同)并使用MVVMLight。 以下是我的代码 的.xaml 下面给出了我对ISupportIncrementalLoading的实现 public class IncrementalLoadingNotificationsCollection : ObservableCollection, ISupportIncrementalLoading { private INotificationService _notificationService; public IncrementalLoadingNotificationsCollection(INotificationService notificationService) { HasMoreItems = true; _notificationService = notificationService; } public bool HasMoreItems { get; private set; } public IAsyncOperation LoadMoreItemsAsync(uint count) { return InnerLoadMoreItemsAsync(count).AsAsyncOperation(); } private async Task InnerLoadMoreItemsAsync(uint expectedCount) { var actualCount = […]

C#Selenium – 在不断增长的页面上寻找元素

我试图找到一个更好的方法来做到这一点,而不是使用: js.ExecuteScript(“scroll(0, 1300)”); 我有一个页面,数据可以改变,使页面高度上下变化。 因此,当我今天点击一个位于1500px的元素时,明天它可能是800px并且找不到元素并且测试用例失败。 那么你们有什么用来在页面上找到尺寸变化的元素?