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
public static T Orientation<T>(
T portrait,
T landscape
)
Parameters
| Name | Type | Description |
|---|---|---|
| portrait | T | 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
| Name | Description |
|---|---|
| T | The type of values to be applied. |
Returns
| Type | Description |
|---|---|
| T | The value selected based on the device screen orientation. |
See Also