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

UITableView Custom Renderer with Forms Cells

$
0
0

Hello!

I am currently trying to make a contact info type form using Xamarin Forms, although I realize for what I want (features such as editing mode), I would need custom renderers. I already have the different kinds of Xamarin Forms Cells, and methods to pick and return the right type of Xamarin Forms Cell depending on the type of information.

Now I am trying to make the iOS UITableView Custom Renderer of TableView, and was hoping I could reuse the Xamarin Forms cells with the UITableView. Is this possible? Currently my thought it to pass my TableView that has all the Cells into my UITableViewSource, and so GetCell can simply get the Xamarin Forms Cells from there. Unfortunately, it does not look like it is possible to cast Xamarin.Forms.Cell to UITableViewCell. Even if I were to make custom renders of each of the cells, I am unsure that would work (as I would still be calling the method on Xamarin.Forms.Cell)? Is there any other alternative? Or do I have to redo everything simply in iOS (and then later for Android)?

Thank you!


Viewing all articles
Browse latest Browse all 58056

Trending Articles