在开发过程中需要将ListBox的翻页开放出来,进行手动翻页:
public static ci FV<ci>(DependencyObject o)
where ci : DependencyObject
{
for (int i = 0; i < VisualTreeHelper.GetChildrenCount(o); i++)
{
DependencyObject c = VisualTreeHelper.GetChild(o, i);
if (c != null && c is ci)
return (ci)c;
else
{
ci cc = FV<ci>(c);
if (cc != null)
return cc;
}
}
return null;
}
/// <summary>
/// 上一页
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param&g