Table of Contents

Method BindToKeyboardVisibility

Namespace
Alternet.UI
Assembly
Alternet.UI.Maui.dll

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

behindKeyboardPanel View

The panel to adjust based on keyboard visibility.

Returns

IKeyboardVisibilityService

BindToKeyboardVisibility(Action<KeyboardVisibleChangedEventArgs>)

Binds the specified action to keyboard visibility changes.

public static IKeyboardVisibilityService? BindToKeyboardVisibility(Action<KeyboardVisibleChangedEventArgs> action)

Parameters

action Action<KeyboardVisibleChangedEventArgs>

The action to invoke when keyboard visibility changes.

Returns

IKeyboardVisibilityService