我發現此代碼分頁集合。它適用於我需要的內容,但我希望能夠在另一個線程中進行分頁,因爲如果每頁中的項目數很大,則界面會暫時凍結。 「RecalculateThePageItems」方法負責創建每個頁面(創建集合時,刪除記錄時和更改頁面時)。一些幫助?非常感謝你! using System.Collections.Generic;
using System.Collections.ObjectMod
我試圖將方法作爲參數傳遞。該方法不返回任何東西(void),因此我以Action的形式執行。當我從命令中調用Execute時會發生錯誤。這是錯誤: Can not be converted from ' void ' to ' System.Action '. 任何幫助嗎? private async void Execute(Action runAction)
{
...