Back to Devexpress

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

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

latest1.0 KB
Original Source

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

Selects the value to be applied depending on the screen orientation.

Namespace : DevExpress.Maui.Core

Assembly : DevExpress.Maui.Core.dll

NuGet Package : DevExpress.Maui.Core

Declaration

csharp
public static T Orientation<T>(
    T portrait,
    T landscape
)

Parameters

NameTypeDescription
portraitT

The value to be applied when the screen orientation is portrait.

| | landscape | T |

The value to be applied when the screen orientation is landscape.

|

Type Parameters

NameDescription
T

The type of values to be applied.

|

Returns

TypeDescription
T

The value selected based on the device screen orientation.

|

See Also

ON Class

ON Members

DevExpress.Maui.Core Namespace