Wah all credits @Gareth Wynn, man who was cool thanks. In any case, here is the code for everyone to use, change class names and namespace, iOS is not included, do the same as for Android, just using the Gareth Wynn hint in the parallel answer:
SHARED NiftyListView.cs :
using System; using Xamarin.Forms; namespace AppoMobi { public class NiftyListView : CListView { public event EventHandler EventScrollToTop;
ANDROID NiftyListView.Android.cs :
using System; using AppoMobi; using AppoMobi.Droid.Renderers; using Xamarin.Forms; using Xamarin.Forms.Platform.Android; using ListView = Xamarin.Forms.ListView; [assembly: ExportRenderer(typeof(NiftyListView), typeof(NiftyListViewRenderer))] namespace AppoMobi.Droid.Renderers {
Nick kovalsky
source share