So want to render out of box CarouselView when Android and CarouselViewFormsPlugin when iOS. I know can accomplish this in xaml using onplatform but don't want to have to do that in several places. Can this be done using custom Renderer like following?
Core Project:
public class CustomCarousel{}
Android:
public class CustomCarousel:CarouselView{}
iOS
public class CustomCarousel:CarouselView.Plugin{}
If this is not possible i have two options that i can see:
- In xaml use onplatform to determine which control to use.
- Have a different view for iOS and Android and determine at runtime which view to render.
I know i can implement these two options but i think that if possible CustomRenderer is best solution here?