Hello guys i am new to stackoverflow, sorry for mistakes in my post.
My question:
I am binding a dataview
to itemsControl
when the data loads (binding actually) the UI
Freezes. The data is too large, more then 600 rows, I want my data to bind one by one or all at once but smoothly.
I implemented the Nito Async.EX
libraries but it didn't work.
private INotifyTaskCompletion<DataView> _studentlist;
Public INotifyTaskCompletion<DataView> StudentList
{
get { return _studentlist; }
set { SetProperty(ref _studentlist, value); }
}
private async Task Fill()
{
StudentList = NotifyTaskCompletion.Create(GetData());
}
private async Task<DataView> GetData()
{
Loading = true;
await Task.Delay(100);
DataTable StudentListTable = await DbContext.QueryT(SelectQuery);
DataColumn DC = new DataColumn("DELETE", typeof(bool));
DC.DefaultValue = false;
StudentListTable.Columns.Add(DC);
Loading = false;
return StudentListTable.DefaultView;
}
References: Prism for MVVM
Unity for prism
Nito Async.EX
Mahapps.Metro
Material Design Xaml toolkit
Any help would be appreciated.