Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Custom ListViewRenderer

$
0
0

Hi

I'm trying to implement my own customer ListViewRenderer on iOS and seem to be hitting limits in Xamarin.Forms flexibility.

Stepping back for a second what I'm actually trying to do is:
a) Stop cells from being selectable
b) remove empty cells/lines from tableview (eg use a custom footer)
c) custom heights for uneven rows isn't implemented
d) implementing swipe to delete

I think some of these can be solved without custom renderers which I'm happy to know about but my actual question is regarding the renderers.

I thought this would be an easy task as it would in Monotouch.Dialog but it seems it's not as flexible, and the fact it isn't open source doesn't help either.

I initially started with ListViewRenderer and knew I needed to extend the ListViewDataSource to stop cells from being selectable and implement the row height feature. So I had to take the decompiled code and implement my own. Now I'm stuck on TemplatedItemsList/TemplatedItems and Registrar.Registered.GetHandler for the get cell.

I(like many others) find alot of Xamarin.Forms lacks flexibility for implementing customisations. I'm wondering if there's plans to fix this?

/cc @JasonASmith‌


Viewing all articles
Browse latest Browse all 58056

Trending Articles