using System; using Xamarin.Forms.Platform; namespace Xamarin.Forms { [RenderWith(typeof(_CarouselPageRenderer))] public class CarouselPage : MultiPage, IElementConfiguration { readonly Lazy> _platformConfigurationRegistry; public CarouselPage() { _platformConfigurationRegistry = new Lazy>(() => new PlatformConfigurationRegistry(this)); } public new IPlatformElementConfiguration On() where T : IConfigPlatform { return _platformConfigurationRegistry.Value.On(); } protected override ContentPage CreateDefault(object item) { var page = new ContentPage(); if (item != null) page.Title = item.ToString(); return page; } } }