首页 > 解决方案 > 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());
        }

标签: c#xamarinxamarin.formsmvvmcollectionview

解决方案


推荐阅读