Method OnHasFocusChanging
OnHasFocusChanging(bool, bool, View?, View?)
Invoked when HasFocus is about to change. This method is called before the HasFocusChanging event is raised.
protected virtual bool OnHasFocusChanging(bool currentHasFocus, bool newHasFocus, View? currentFocused, View? newFocused)
Parameters
currentHasFocusboolThe current value of HasFocus.
newHasFocusboolThe value HasFocus will have if the focus change happens.
currentFocusedViewThe view that is currently Focused. May be null.
newFocusedViewThe view that will be focused. May be null.
Returns
Remarks
Use OnHasFocusChanged(bool, View?, View?) to be notified after the focus has changed.