Xamarin.Forms Guides | Samples

Xamarin.Forms.ContentPresenter Class

Layout manager for templated views.

See Also: ContentPresenter

Syntax

public class ContentPresenter : Layout

Requirements

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

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

See Also: Layout

Public Constructors

Creates a new empty ContentPresenter with default values

Public Fields

static
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

override
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.
override
OnSizeRequest(Double, Double) : SizeRequest
Method that is raised when a size request is made.