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

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

#Parameters

Name Type Description
listener T

The object that subscribes to the OrientationChanged event.

handler Action<T>

A method that handles the OrientationChanged event.

#Type Parameters

Name Description
T

The reference type.

#Returns

Type Description
IDisposable

An object that restores the handler when needed.

#Remarks

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

See Also