Ooui-tws-port/Samples/ListView/RefreshListView.xaml.cs

24 lines
567 B
C#
Raw Permalink Normal View History

using Xamarin.Forms;
using Xamarin.Forms.Xaml;
2018-04-16 05:55:23 +00:00
using System.Linq;
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);
}
}
}