Table of Contents

Event OrientationChanging

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Raised when the orientation is changing. This is cancelable.

public event EventHandler<CancelEventArgs<Orientation>>? OrientationChanging

Returns

EventHandler<CancelEventArgs<Orientation>>
Raised when the orientation is changing. This is cancelable.

Remarks

Views that implement IOrientation should raise OrientationChanging after the orientation has changed (

_orientationHelper.OrientationChanging += (sender, e) => OrientationChanging?.Invoke (this, e);
).

This event will be raised after the OnOrientationChanging(Orientation, Orientation) method is called (assuming it was not canceled).