Xamarin.Forms.Core1.0.0.01.1.0.01.2.0.01.3.0.01.4.0.01.5.0.02.0.0.0Xamarin.Forms.MultiPage<Xamarin.Forms.ContentPage>Xamarin.Forms.ContentPageXamarin.Forms.RenderWith(typeof(Xamarin.Forms.Platform._CarouselPageRenderer))A Page that users can swipe from side to side to display pages of content, like a gallery.The provides a navigation experience that will feel natural and familiar to Windows Phone users. By using , application developers can provide customized navigation on a per-platform basis. For example, an application developer could use a for Android and iOS, and use a on Windows Phone.The following XAML example, when properly included and referenced in a Xamarin.Forms project, creates a that displays three simple elements:
]]>The following C# example creates a that displays three simple elements: pages = new List (0);
Color[] colors = { Color.Red, Color.Green, Color.Blue };
foreach (Color c in colors) {
pages.Add (new ContentPage { Content = new StackLayout {
Children = {
new Label { Text = c.ToString () },
new BoxView {
Color = c,
VerticalOptions = LayoutOptions.FillAndExpand
}
}
}
});
}
MainPage = new CarouselPage {
Children = { pages [0],
pages [1],
pages [2] }
};
]]>When embedding a CarouselPage into a , application developers should set to to prevent gesture conflicts between the CarouselPage and MasterDetailPage.Constructor1.0.0.01.1.0.01.2.0.01.3.0.01.4.0.01.5.0.02.0.0.0Initializes a new instance of the CarouselPage class.Method1.0.0.01.1.0.01.2.0.01.3.0.01.4.0.01.5.0.02.0.0.0Xamarin.Forms.ContentPage
The object representing the model ofr the page.
Creates a default page, suitable for display in this, for an object.A page that is titled with the string value of .This returns a new object that has its property set to the value of when called on .