【发布时间】:2018-12-20 10:48:50
【问题描述】:
我在 iOS 中使用 Xamarin Forms。我在滚动视图中有一个编辑器。编辑器设置为填充大部分页面。这是有效的。
<ContentPage.Content>
<ScrollView>
<StackLayout>
<Editor x:Name="NotesEditor" Text="{Binding Contact.AttendanceDetails.Notes, Mode=TwoWay}" VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand" BackgroundColor="AliceBlue" TextChanged="NotesEditor_TextChanged" ></Editor>
<Label x:Name="RemainingText" VerticalOptions="Fill" HorizontalOptions="CenterAndExpand" HeightRequest="40"></Label>
</StackLayout>
</ScrollView>
</ContentPage.Content>
问题是当使用软键盘时,页面滚动,当用户开始输入时,如果没有手动滚动,他们最初看不到他们在键盘上输入的文本。
有没有办法软件键盘不推动滚动视图?所以用户可以手动完成吗?
任何想法都将不胜感激。
【问题讨论】:
标签: xamarin.forms xamarin.ios editor scrollview