Bao*_*Bao 6 c# xamarin.ios xamarin xamarin.forms
当您使用 Xamarin.Forms.Visual.Material 包并创建如下样式时:
<Style
TargetType="Entry">
<Setter
Property="TextColor"
Value="{StaticResource OnSurfaceColor}" />
<Setter
Property="PlaceholderColor"
Value="{StaticResource OnSurfaceColor}" />
<Setter
Property="BackgroundColor"
Value="Transparent" />
<Setter
Property="FontSize"
Value="{StaticResource FontSizeNormal}"/>
</Style>
Run Code Online (Sandbox Code Playgroud)
并创建这样的布局:
<Frame
Margin="16,24">
<StackLayout
Margin="4,8"
Spacing="0">
<Entry
Visual="Material"
Text="{Binding UserName}"
Keyboard="Email"
Placeholder="{i18n:Translate signIn_txtUserName_placeholder}" />
<Entry Visual="Material"
x:Name="txtPassword"
IsPassword="True"
Text="{Binding Password}"
Placeholder="{i18n:Translate signIn_txtPassword_placeholder}" />
</StackLayout>
</Frame>
Run Code Online (Sandbox Code Playgroud)
应用程序冻结......当我在条目之间改变颜色时,但它不起作用。第一个屏幕可以工作,但是当我回到它时,我的 iOS 14 应用程序冻结了。1: Login, Screen 2: Home, From App run the first -> Login -> Home, it's work! 但是 Form Home -> Logout back to Login,iOS 14 App 冻结了 :(((有人帮帮我?*拜托,谢谢!
我有同样的问题,我可以使用样式线而不是此条目的样式来修复它。而且我不编辑字体,例如在我的例子中,样式已经设置了字体系列,但它不喜欢现在的 iOS 14...所以我删除了该条目的字体系列并工作
| 归档时间: |
|
| 查看次数: |
268 次 |
| 最近记录: |