Back to Devexpress

ON.Idiom<T>(T, T) Method

maui-devexpress-dot-maui-dot-core-dot-on-dot-idiom-1-x28-0-0-x29.md

latest968 B
Original Source

ON.Idiom<T>(T, T) Method

Selects the value to be applied depending on the device type on which the app is running.

Namespace : DevExpress.Maui.Core

Assembly : DevExpress.Maui.Core.dll

NuGet Package : DevExpress.Maui.Core

Declaration

csharp
public static T Idiom<T>(
    T phone,
    T tablet
)

Parameters

NameTypeDescription
phoneT

The value to be applied on phones.

| | tablet | T |

The value to be applied on tablets.

|

Type Parameters

NameDescription
T

The reference type.

|

Returns

TypeDescription
T

The value selected based on the device type.

|

See Also

ON Class

ON Members

DevExpress.Maui.Core Namespace