Xamarin.Forms Guides | Samples

Xamarin.Forms.TemplatedView Class

A view that displays content with a control template, and the base class for ContentView.

See Also: TemplatedView

Syntax

public class TemplatedView : 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.TemplatedView are listed below.

See Also: Layout

Public Constructors

Creates a new empty templated view.

Public Fields

static readonly
ControlTemplatePropertyBindableProperty. Backing store for the ControlTemplate property..

Public Properties

ControlTemplateControlTemplate. Gets or sets the control template that is used to display content.

Protected Methods

override
LayoutChildren(Double, Double, Double, Double)
Positions and sizes the children of the templated view within the rectangle defined by x, y, width, and heightT.
override
OnSizeRequest(Double, Double) : SizeRequest
Method that is called when the layout updates.