Xamarin.Forms Guides | Samples

Xamarin.Forms.TargetIdiom Enumeration

Indicates the type of device Forms is working on.

Syntax

public enum TargetIdiom

Remarks

Members

Member NameDescription
DesktopIndicates that Forms is running on a UWP app on Windows 10.
PhoneIndicates that the width of the iPhone, iPod Touch, Windows Phone, or Android device on which Forms is running is narrower than 600 dips.
TabletIndicates that the width of the iPad, Windows 8.1, or Android device on which Forms is running is wider than 600 dips.
Unsupported(Unused) Indicates that Forms is running on an unsupported device.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0, 1.4.0.0, 1.5.0.0, 2.0.0.0

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

See Also: Enum

Public Fields

DesktopTargetIdiom. Indicates that Forms is running on a UWP app on Windows 10.
PhoneTargetIdiom. Indicates that the width of the iPhone, iPod Touch, Windows Phone, or Android device on which Forms is running is narrower than 600 dips.
TabletTargetIdiom. Indicates that the width of the iPad, Windows 8.1, or Android device on which Forms is running is wider than 600 dips.
UnsupportedTargetIdiom. (Unused) Indicates that Forms is running on an unsupported device.