Class
KeyboardHelper

A helper class that is used to displace views when the soft keyboard is open, so that the keyboard does not hide the views.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public static class KeyboardHelper

Inheritance: objectKeyboardHelper

Fields

IsTabStopProperty

Identifies the IsTabStop attached property. Controls whether a View participates in tab navigation on desktop platforms.

Declaration

cs-api-definition
public static readonly BindableProperty IsTabStopProperty

Field Value

BindableProperty

IsTranslationPivotProperty

Identifies the IsTranslationPivot attached property.

Declaration

cs-api-definition
public static readonly BindableProperty IsTranslationPivotProperty

Field Value

BindableProperty

IsTranslationSourceProperty

Identifies the IsTranslationSource attached property.

Declaration

cs-api-definition
public static readonly BindableProperty IsTranslationSourceProperty

Field Value

BindableProperty

IsTranslationTargetProperty

Identifies the IsTranslationTarget attached property.

Declaration

cs-api-definition
public static readonly BindableProperty IsTranslationTargetProperty

Field Value

BindableProperty

Methods

GetIsTabStop(View)

Gets the value of the IsTabStopProperty attached property for the given view.

Declaration

cs-api-definition
public static bool? GetIsTabStop(View view)

Parameters

view

View

Returns

bool?

GetIsTranslationPivot(BindableObject)

Gets a value indicating whether the view (the bindable object) is a translation pivot in Android and iOS, i.e. this is the view that should remain visible when the translation source is focused and the translation target is displaced (the total translation of the target depends on the position of the translation pivot view).

Declaration

cs-api-definition
public static bool GetIsTranslationPivot(BindableObject bindable)

Parameters

bindable

BindableObject

Returns

bool

GetIsTranslationSource(BindableObject)

Gets a value indicating whether the view (the bindable object) is a translation source in Android and iOS, i.e. if this view should trigger displacement of the translation target when the view is focused.

Declaration

cs-api-definition
public static bool GetIsTranslationSource(BindableObject bindable)

Parameters

bindable

BindableObject

Returns

bool

GetIsTranslationTarget(BindableObject)

Gets a value indicating whether the view (the bindable object) is a translation target in Android and iOS, i.e. if this view should be displaced when the translation source view is focused, so that the translation pivot is not hidden by the keyboard.

Declaration

cs-api-definition
public static bool GetIsTranslationTarget(BindableObject bindable)

Parameters

bindable

BindableObject

Returns

bool

SetIsTabStop(View, bool?)

Sets the value of the IsTabStopProperty attached property on the given view.

Declaration

cs-api-definition
public static void SetIsTabStop(View view, bool? value)

Parameters

view

View

value

bool?

SetIsTranslationPivot(BindableObject, bool)

Sets a value indicating whether the view (the bindable object) is a translation pivot in Android and iOS, i.e. this is the view that should remain visible when the translation source is focused and the translation target is displaced (the total translation of the target depends on the position of the translation pivot view).

Declaration

cs-api-definition
public static void SetIsTranslationPivot(BindableObject bindable, bool value)

Parameters

bindable

BindableObject

value

bool

SetIsTranslationSource(BindableObject, bool)

Sets a value indicating whether the view (the bindable object) is a translation source in Android and iOS, i.e. if this view should trigger displacement of the translation target when the view is focused.

Declaration

cs-api-definition
public static void SetIsTranslationSource(BindableObject bindable, bool value)

Parameters

bindable

BindableObject

value

bool

SetIsTranslationTarget(BindableObject, bool)

Sets a value indicating whether the view (the bindable object) is a translation target in Android and iOS, i.e. if this view should be displaced when the translation source view is focused, so that the translation pivot is not hidden by the keyboard.

Declaration

cs-api-definition
public static void SetIsTranslationTarget(BindableObject bindable, bool value)

Parameters

bindable

BindableObject

value

bool