2018-03-22 19:16:11 +00:00
|
|
|
|
using Xamarin.Forms;
|
|
|
|
|
using Xamarin.Forms.Xaml;
|
2018-04-16 05:55:23 +00:00
|
|
|
|
using System.Linq;
|
2018-03-22 19:16:11 +00:00
|
|
|
|
|
|
|
|
|
namespace Samples
|
|
|
|
|
{
|
|
|
|
|
[XamlCompilation(XamlCompilationOptions.Compile)]
|
|
|
|
|
public partial class RefreshListView : ContentPage
|
|
|
|
|
{
|
|
|
|
|
public RefreshListView ()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent ();
|
|
|
|
|
|
|
|
|
|
BindingContext = new RefreshListViewModel ();
|
|
|
|
|
}
|
2018-04-16 05:55:23 +00:00
|
|
|
|
|
|
|
|
|
void Handle_Clicked (object sender, System.EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
string item = ((RefreshListViewModel)BindingContext).Data.LastOrDefault ();
|
|
|
|
|
list.ScrollTo (item, ScrollToPosition.End, true);
|
|
|
|
|
}
|
2018-03-22 19:16:11 +00:00
|
|
|
|
}
|
|
|
|
|
}
|