Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ON.ScreenHeight<T>(Nullable<T>, Nullable<T>, Nullable<T>, Nullable<T>, Nullable<T>, Nullable<Double>, Nullable<Double>, Nullable<Double>, Nullable<Double>) Method

Selects the value of a value type to be applied depending on the screen height.

Namespace: DevExpress.Maui.Core

Assembly: DevExpress.Maui.Core.dll

NuGet Package: DevExpress.Maui.Core

#Declaration

C#
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 : struct

#Optional Parameters

Name Type Default Description
extraSmall Nullable<T> null

The value to be applied on devices with the Extra Small height.

small Nullable<T> null

The value to be applied on devices with the Small height.

medium Nullable<T> null

The value to be applied on devices with the Medium height.

large Nullable<T> null

The value to be applied on devices with the Large height.

extraLarge Nullable<T> null

The value to be applied on devices with the Extra Large height.

smallThreshold Nullable<Double> null

Specifies the lower height boundary for Small screens.

mediumThreshold Nullable<Double> null

Specifies the lower height boundary for Medium screens.

largeThreshold Nullable<Double> null

Specifies the lower height boundary for Large screens.

extraLargeThreshold 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.

See Also