Method OnHasFocusChanged | Terminal.Gui v2 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

OnHasFocusChanged(bool, View?, View?)

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

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

Parameters

newHasFocus bool

The new value of HasFocus.

previousFocusedView View

focusedView View

The view that is now focused. May be null

Remarks

This event cannot be cancelled.