Device.Idiom Property

Definition

Caution

Use Microsoft.Maui.Devices.DeviceInfo.Idiom instead.

Gets the kind of device that Microsoft.Maui.Controls is currently working on.

public:
 static property Microsoft::Maui::Controls::TargetIdiom Idiom { Microsoft::Maui::Controls::TargetIdiom get(); };
[System.Obsolete("Use Microsoft.Maui.Devices.DeviceInfo.Idiom instead.")]
public static Microsoft.Maui.Controls.TargetIdiom Idiom { get; }
[<System.Obsolete("Use Microsoft.Maui.Devices.DeviceInfo.Idiom instead.")>]
static member Idiom : Microsoft.Maui.Controls.TargetIdiom
Public Shared ReadOnly Property Idiom As TargetIdiom

Property Value

A TargetIdiom that represents the device type.

Attributes

Applies to