WPF 流加载
2021-06-21 10:05
标签:index catch change vat table get height begin ++ WPF 流加载 标签:index catch change vat table get height begin ++ 原文地址:https://www.cnblogs.com/SeNaiTes/p/10239847.html ///
private void sv_ScrollChanged(object sender, ScrollChangedEventArgs e)
{
try
{
ScrollViewer sv = e.OriginalSource as ScrollViewer;
if (sv != null && e.VerticalChange != 0)
{
if (sv.VerticalOffset == sv.ExtentHeight - sv.ViewportHeight)//到底
{
//TODO:加载下条数据
if (SteamDataTable != null)
{
Pgindex++;
AddData(GetPagedTable(SteamDataTable, Pgindex, PageSize));
}
}
}
}
catch
{ }
}
上一篇:C#---引用类型,值类型和堆栈
下一篇:ansible管理win10