-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
area-keyboardKeyboard, soft keyboardKeyboard, soft keyboardlegacy-area-controlsLabel, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, EditorLabel, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editorproposal/opent/enhancement ☀️New feature or requestNew feature or request
Milestone
Description
Description
Description
When the SoftKeyboard is visible, and the user starts scrolling there are a couple different ways the keyboard can react.
- StayOpen: Keyboard stays open
- CloseWithDownScroll: Keyboard immediately closes when scrolling down
- FollowDownScroll: Keyboard follows scroll position (I think this is only possible on iOS)
Additional thoughts
- Should we also add APIS for
Up Scroll - If we add a KeyboardManager so users can open/close/position the keyboard themselves then do we even need this behavior?
(Public) API Changes
IScrollableKeyboardInteraction
Add this interface to any container that's capable of scrolling ScrollView, CarouselView, CollectionView`
Properties
| API | Description |
|---|---|
| SoftKeyboardScrollInteraction | Gets or sets keyboard interaction when scrolling content. |
KeyboardScrollInteraction
public enum KeyboardScrollInteraction
{
Default, StayOpen, CloseWhenScrollingDown, FollowWhenScrollingDown
}Usage Scenarios
XAML Example
<ScrollView SoftKeyboardScrollInteraction ="CloseWithDownScroll">
<VerticalStackLayout>
<Entry/>
<Entry/>
<Entry/>Backward Compatibility
N/A
Difficulty
High
gkarabin
Metadata
Metadata
Assignees
Labels
area-keyboardKeyboard, soft keyboardKeyboard, soft keyboardlegacy-area-controlsLabel, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, EditorLabel, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editorproposal/opent/enhancement ☀️New feature or requestNew feature or request