Xamarin.Forms Guides | Samples

Xamarin.Forms.ContentPresenter Class

Layout manager for templated views.

See Also: ContentPresenter


public class ContentPresenter : Layout


Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions:

The members of Xamarin.Forms.ContentPresenter are listed below.

See Also: Layout

Public Constructors

Creates a new empty ContentPresenter with default values

Public Fields

ContentPropertyBindableProperty. Backing store for the ContentPresenter.Content property.

Public Properties

ContentView. Gets or sets the view whose layout is managed by this ContentPresenter.

Protected Methods

LayoutChildren(Double, Double, Double, Double)
Lays out the children of the ContentPresenter.Content property within the rectangle that is defined by x, y, widht, and height.
OnSizeRequest(Double, Double) : SizeRequest
Method that is raised when a size request is made.