Xamarin.Forms Guides | Samples

Xamarin.Forms.On Class

Class that is used within OnPlatform tags in XAML when specifying values on platforms.

See Also: On

Syntax

[Xamarin.Forms.ContentProperty("Value")]
public class On

Requirements

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

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

See Also: Object

Public Constructors

On()
Creates a new On with default values.

Public Properties

PlatformIList<string>. Gets or sets the list of specified platforms.
ValueObject. Gets or sets the value on the current platform.