New to Telerik UI for .NET MAUIStart a free 30-day trial

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:

C#
public static class KeyboardHelper

Inheritance: objectKeyboardHelper

Fields

IsTabStopProperty

BindableProperty

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

C#
public static readonly BindableProperty IsTabStopProperty

Identifies the IsTranslationPivot attached property.

C#
public static readonly BindableProperty IsTranslationPivotProperty

Identifies the IsTranslationSource attached property.

C#
public static readonly BindableProperty IsTranslationSourceProperty

Identifies the IsTranslationTarget attached property.

C#
public static readonly BindableProperty IsTranslationTargetProperty

Methods

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

C#
public static bool? GetIsTabStop(View view)
Parameters:viewViewReturns:

bool?

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).

C#
public static bool GetIsTranslationPivot(BindableObject bindable)
Parameters:bindableBindableObjectReturns:

bool

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.

C#
public static bool GetIsTranslationSource(BindableObject bindable)
Parameters:bindableBindableObjectReturns:

bool

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.

C#
public static bool GetIsTranslationTarget(BindableObject bindable)
Parameters:bindableBindableObjectReturns:

bool

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

C#
public static void SetIsTabStop(View view, bool? value)
Parameters:viewViewvaluebool?

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).

C#
public static void SetIsTranslationPivot(BindableObject bindable, bool value)
Parameters:bindableBindableObjectvaluebool

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.

C#
public static void SetIsTranslationSource(BindableObject bindable, bool value)
Parameters:bindableBindableObjectvaluebool

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.

C#
public static void SetIsTranslationTarget(BindableObject bindable, bool value)
Parameters:bindableBindableObjectvaluebool