Table of Contents

Method OnHasFocusChanged

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

OnHasFocusChanged(bool, View?, View?)

Invoked after HasFocus has changed. This method is called before the HasFocusChanged event is raised.

protected virtual void OnHasFocusChanged(bool newHasFocus, View? previousFocusedView, View? focusedVew)

Parameters

newHasFocus bool

The new value of HasFocus.

previousFocusedView View
focusedVew View

The view that is now focused. May be null

Remarks

This event cannot be cancelled.