ON.Idiom<T>(T, T) Method
In This Article
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
C#
public static T Idiom<T>(
T phone,
T tablet
)
#Parameters
Name | Type | Description |
---|---|---|
phone | T | The value to be applied on phones. |
tablet | T | The value to be applied on tablets. |
#Type Parameters
Name | Description |
---|---|
T | The reference type. |
#Returns
Type | Description |
---|---|
T | The value selected based on the device type. |
See Also