小编Bao*_*Bao的帖子

当 IsPassword="True" 的条目中的 Visual="Material" 时,iOS 14 应用程序冻结

当您使用 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 冻结了 :(((有人帮帮我?*拜托,谢谢!

c# xamarin.ios xamarin xamarin.forms

6
推荐指数
1
解决办法
268
查看次数

标签 统计

c# ×1

xamarin ×1

xamarin.forms ×1

xamarin.ios ×1