我是Xamarin Forms的新手 . 我只是练习按钮,当我点击按钮时我看到了一个问题 . 请参阅我在下面记录的图像链接上的红色矩形:

https://z-p3-cdn.fbsbx.com/v/t59.2708-21/34086570_1911682319122715_4772903306714415104_n.gif?_nc_cat=0&_nc_eui2=AeF0XJtIuzu6CuR7oPNsnOOAQuxVAvQ_g0fp0PfBUh_5ouFaFQb-wpkv8cuueWQ25IsjKYP9Vedd0XLE2M3J2_uC_zFeag-rca1q7CCVSyweYQ&oh=52d818ede27be9b626abc9aee7e53fa0&oe=5B22C886

我尝试使用自定义渲染器和效果,但按钮不显示单击的效果 .

代码在这里

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
         xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
         xmlns:extension="clr-namespace:LearnXamarin.MarkupExtensions"
         x:Class="LearnXamarin.Views.SignInPage"
         BackgroundColor="{DynamicResource appBackgroundColor}"
         Padding="10"
<StackLayout Spacing="10"
             HorizontalOptions="Fill">
<Image Source="{extension:EmbededImage LearnXamarin.Images.logo.png}"
       HorizontalOptions="Center"
       Margin="0,20,0,0" />
<Entry Placeholder="Email"
       Keyboard="Email" />
<Entry Placeholder="Password"
       IsPassword="True" />
<Button Text="Sign In"
        TextColor="White" BackgroundColor="Green"/>
<Label HorizontalTextAlignment="Center">
    <Label.FormattedText>
        <FormattedString>
            <Span Text="New to xamarin? " />
            <Span Text="Create account!"
                  ForegroundColor="Blue" />
        </FormattedString>
    </Label.FormattedText>
</Label>
</StackLayout>