Class
KeyboardHelper

A helper class that is used to displace views in iOS 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

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

GetIsTranslationPivot(BindableObject)

Gets a value indicating whether the view (the bindable object) is a translation pivot in 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 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 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

SetIsTranslationPivot(BindableObject, bool)

Sets a value indicating whether the view (the bindable object) is a translation pivot in 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 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 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