Method BindToKeyboardVisibility
BindToKeyboardVisibility(View)
Binds the specified panel to keyboard visibility changes. Height and visibility of the panel is adjusted based on keyboard state. When the keyboard is shown, the panel's height is set to the keyboard height and made visible. When the keyboard is hidden, the panel is made invisible.
public static IKeyboardVisibilityService? BindToKeyboardVisibility(View behindKeyboardPanel)
Parameters
behindKeyboardPanelViewThe panel to adjust based on keyboard visibility.
Returns
BindToKeyboardVisibility(Action<KeyboardVisibleChangedEventArgs>)
Binds the specified action to keyboard visibility changes.
public static IKeyboardVisibilityService? BindToKeyboardVisibility(Action<KeyboardVisibleChangedEventArgs> action)
Parameters
actionAction<KeyboardVisibleChangedEventArgs>The action to invoke when keyboard visibility changes.