public override View GetSampleContent(Context context) { pullToRefresh = new SfPullToRefresh(context); pullToRefresh.TransitionType = TransitionType.Push; pullToRefresh.Refreshing += Pull_Refreshing; listView = new ListView(context); repository = new InboxRepositiory(); adapter = new CustomBaseAdapter((Activity)context, repository.InboxItems); listView.Adapter = adapter; pullToRefresh.PullableContent = listView; return(pullToRefresh); }
public CollectionViewSource() : base() { repository = new InboxRepositiory(); items = repository.InboxItems; }