软键盘未显示在 Xamarin 形式的 Entry 焦点上

问题描述

在初始页面上,表单工作正常,这意味着软键盘显示在输入控件的焦点上,但有时在我再次填写表单时浏览某些页面后。点击进入控制时,不显示键盘。 Acr.UserDialogs“正在加载”与软键盘重叠并阻止其显示。但是我没有在这页面中使用 Acr.UserDialogs。那么,为什么会显示“正在加载”并由于此软键盘而消失。我被困住了。请帮助我解决这个问题。我使用过 Prism MVVM。Please see the image

<cc:StandardEntry x:Name="houseno" Grid.Row="2"  
                                    Placeholder="{x:Static resource:AppResources.HouseNo}" BackgroundColor="White" 
                                    Text="{Binding HouseNo.Value}" FontSize="Small" 
                                    FontFamily="RegFont" Padding="12" 
                                    Keyboard="Text" BorderColor="{StaticResource GrayColor}" BorderThickness="1"
                                    CornerRadius="8">
                    <Entry.Behaviors>
                        <behaviors:EventToCommandBehavior EventName="TextChanged" Command="{Binding ValidateHouseNoCommand}"/>
                    </Entry.Behaviors>
                    <Entry.Triggers>
                        <DataTrigger targettype="Entry" Binding="{Binding HouseNo.IsValid}" Value="False">
                            <Setter Property="TextColor" Value="{StaticResource ErrorColor}" />
                        </DataTrigger>
                    </Entry.Triggers>
                </cc:StandardEntry>
                <Label Grid.Row="3" Text="{Binding HouseNo.Errors,Converter={StaticResource FirstValidationErrorConverter}}" 
                Style="{StaticResource ValidationErrorLabelStyle}" FontSize="Small"/>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)