Back to Devexpress

ON.OrientationChanged<T>(T, Action<T>) Method

maui-devexpress-dot-maui-dot-core-dot-on-dot-orientationchanged-1-x28-0-system-dot-action-0-x29.md

latest1.3 KB
Original Source

ON.OrientationChanged<T>(T, Action<T>) Method

Allows you to perform custom actions when the screen orientation changes.

Namespace : DevExpress.Maui.Core

Assembly : DevExpress.Maui.Core.dll

NuGet Package : DevExpress.Maui.Core

Declaration

csharp
public static IDisposable OrientationChanged<T>(
    T listener,
    Action<T> handler
)
    where T : class

Parameters

NameTypeDescription
listenerT

The object that subscribes to the OrientationChanged event.

| | handler | Action<T> |

A method that handles the OrientationChanged event.

|

Type Parameters

NameDescription
T

The reference type.

|

Returns

TypeDescription
IDisposable

An object that restores the handler when needed.

|

Remarks

For more information, refer to the following section: ON.

See Also

ON Class

ON Members

DevExpress.Maui.Core Namespace