Table of Contents

Event SuperViewChanging

Namespace
Terminal.Gui.ViewBase
Assembly
Terminal.Gui.dll

Raised when the SuperView of this View is about to be changed. This is raised before the SuperView property is updated, allowing access to the current SuperView and its resources (such as App) for cleanup purposes.

public event EventHandler<ValueChangingEventArgs<View?>>? SuperViewChanging

Returns

EventHandler<ValueChangingEventArgs<View>>
Raised when the SuperView of this View is about to be changed. This is raised before the SuperView property is updated, allowing access to the current SuperView and its resources (such as ) for cleanup purposes.

Remarks

This event follows the Cancellable Work Pattern (CWP). Set Handled to true in the event args to cancel the change.