/// <summary> /// Get数据刷新listView /// </summary> /// <returns></returns> public async void InitializeView() { listView.Items.Clear(); this.users = await userRequest.GetAllRequest(Uris.BaseUrl + Uris.User + "GetAll"); foreach (var item in this.users) { var it = new { ID = item["id"], Name = item["name"], CreatTime = item["creationTime"], fullName = item["fullName"] }; listView.Items.Add(it); } listView.Items.SortDescriptions.Add(new SortDescription("ID", ListSortDirection.Ascending)); }