c# - CollectionView 在 Not MVVM 后面的代码中延迟加载
问题描述
有没有人尝试使用Behind not the MVVM架构的代码为Collection View Control实现延迟加载功能?我有一组项目,有时带图片达到 2000 个项目,我需要显示 20 个项目,当转到页面底部时,又显示 20 个!MVVM风格有很多解释,我需要帮助使用后面的代码
var CategutyRespons = await httpclint.GetAsync(URL + "/Categuty");
if (CategutyRespons.StatusCode == System.Net.HttpStatusCode.OK)
{
var jsonResponse = await CategutyRespons.Content.ReadAsStringAsync();
var CategutysList = JsonConvert.DeserializeObject<StartDataClass>(jsonResponse);
//Binding Data to CollectionView
Category.ItemsSource = CategutysList.Categories.OrderBy(x => Guid.NewGuid());
}
解决方案
推荐阅读
- python - 带有日期的操作 pyspark
- ruby - 硒检查禁用按钮失败
- javascript - JavaScript/React 中的构造函数是必需的吗?
- javascript - 如何在 moment.js 中设置解析的语言环境?
- php - PDO 和 SQL 注入攻击
- python - 调用初始化的 tf.keras.Model 在模型内的 Dropout 层上给出尺寸不匹配
- linux - 无法在 Amazon Linux 2 机器上安装 libsasl2-devel
- php - 仅在登录后才允许访问文件(htaccess?)
- python - matplotlib:顺序 plt.savefig 问题
- jquery - 根据数组中列出的 ID 对两列中的 Div 进行排序