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
currentHasFocus
boolThe current value of HasFocus.
newHasFocus
boolThe value HasFocus will have if the focus change happens.
currentFocused
ViewThe view that is currently Focused. May be null.
newFocused
ViewThe view that will be focused. May be null.
Returns
Remarks
Use OnHasFocusChanged(bool, View?, View?) to be notified after the focus has changed.