Table of Contents

Method OnSuperViewChanging

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

OnSuperViewChanging(ValueChangingEventArgs<View?>)

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

protected virtual bool OnSuperViewChanging(ValueChangingEventArgs<View?> args)

Parameters

args ValueChangingEventArgs<View>

Hold the new SuperView that will be set, or null if being removed.

Returns

bool

true to cancel the change; false to allow it.