ON.ScreenHeight<T>(T, T, T, T, T, Nullable<Double>, Nullable<Double>, Nullable<Double>, Nullable<Double>) Method
Selects the value of a reference type to be applied depending on the device screen size.
Namespace: DevExpress.Maui.Core
Assembly: DevExpress.Maui.Core.dll
NuGet Package: DevExpress.Maui.Core
#Declaration
public static T ScreenHeight<T>(
T extraSmall = null,
T small = null,
T medium = null,
T large = null,
T extraLarge = null,
double? smallThreshold = null,
double? mediumThreshold = null,
double? largeThreshold = null,
double? extraLargeThreshold = null
)
where T : class
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
extra |
T | null | The value to be applied on devices with the Extra Small height. |
small | T | null | The value to be applied on devices with the Small height. |
medium | T | null | The value to be applied on devices with the Medium height. |
large | T | null | The value to be applied on devices with the Large height. |
extra |
T | null | The value to be applied on devices with the Extra Large height. |
small |
Nullable<Double> | null | Specifies the lower height boundary for Small screens. |
medium |
Nullable<Double> | null | Specifies the lower height boundary for Medium screens. |
large |
Nullable<Double> | null | Specifies the lower height boundary for Large screens. |
extra |
Nullable<Double> | null | Specifies the lower height boundary for Extra Large screens. |
#Type Parameters
Name | Description |
---|---|
T | The type of values to be applied. |
#Returns
Type | Description |
---|---|
T | The value selected based on the device screen height. |