C# Xamarin表单入口边框在某些iOS设备上不扩展
我遇到了一个问题(特别是在iPhone 6s、7、Ipad Pro等iOS设备上),我的输入字段在边框下没有水平扩展到页面的末尾 完整代码C# Xamarin表单入口边框在某些iOS设备上不扩展,c#,ios,xaml,user-interface,xamarin.forms,C#,Ios,Xaml,User Interface,Xamarin.forms,我遇到了一个问题(特别是在iPhone 6s、7、Ipad Pro等iOS设备上),我的输入字段在边框下没有水平扩展到页面的末尾 完整代码 <StackLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"> <Image Source="Logo.png" VerticalOptions="EndAndExpand"/> <Label Text="Welco
<StackLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
<Image Source="Logo.png" VerticalOptions="EndAndExpand"/>
<Label Text="Welcome" HorizontalTextAlignment="Center" HorizontalOptions="Center" FontSize="Large" />
<Label Text="I don't have an account - Register" freshEssentials:TappedGestureAttached.Command="{Binding GoToRegisterPageCommand}" TextColor="Accent" FontSize="Medium" HorizontalOptions="Center"/>
<StackLayout VerticalOptions="CenterAndExpand" HorizontalOptions="FillAndExpand">
<Entry x:Name="EmailEntry" Text="{Binding Email}" Placeholder="Email" Keyboard="Email">
<Entry.Behaviors>
<behaviours:EmailValidatorBehaviour IsValid="{Binding IsEmailValid, Mode=OneWayToSource}"/>
</Entry.Behaviors>
</Entry>
<Entry x:Name="PasswordEntry" Text="{Binding Password}" Placeholder="Password" IsPassword="True" />
<Label Text="{Binding InstructionText}" HorizontalTextAlignment="Center" FontSize="Large" />
</StackLayout>
<Button Text="Login" Command="{Binding LoginCommand}" VerticalOptions="End"/>
</StackLayout>
同样的代码在iphone5-5s和所有Android设备上都显示得很好
有什么想法吗?我试着在入口上摆弄“fillandexpand”等,但似乎没有任何效果
我的Xamarin版本是2.3.1.114(我尝试了升级,但留下了一个无法构建的项目,出现XAMC错误。如果人们建议这样做,可以重试)
iOS条目渲染器中可能存在问题?
我注意到我的其他条目视图也有同样的错误
我最终发现了问题
项目中有人为我不知道的所有入口创建了自定义渲染器,并错误地计算了帧宽度。您是否尝试过在入口的水平选项中启动或启动并展开?您是否尝试过
水平选项=“FillAndExpand”
?感谢回复,这两个答案我都试过了,但都不管用。你的孩子是什么样的孩子吗?请展示完整的布局。完成@GeraldVersluis