Device.Idiom Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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