private InfiniteListViewItemAppearing ( object sender, ItemVisibilityEventArgs e ) : void | ||
sender | object | |
e | ItemVisibilityEventArgs | |
리턴 | void |
void InfiniteListViewItemAppearing(object sender, ItemVisibilityEventArgs e)
{
var items = ItemsSource as IList;
if (items != null && e.Item == items [items.Count - 1])
{
if (LoadMoreCommand != null && LoadMoreCommand.CanExecute (null))
LoadMoreCommand.Execute (null);
}
}
}