Disabled buttons are invisible on WinPhone 8.1 Silverlight

arividararividar ISUniversity ✭✭
edited November 2015 in Xamarin.Forms

I have the following trigger for styling disabled button:

            <Style TargetType="Button">
                <Setter Property="BackgroundColor" Value="#017A73" />
                <Setter Property="TextColor" Value="#fffefe" />
                <Setter Property="FontFamily" Value="{StaticResource FaktSmConProMedium}" />
                <Setter Property="HeightRequest">
                        <OnPlatform Android="45"
                                    x:TypeArguments="x:Double" />
                <Setter Property="FontSize" Value="{StaticResource ButtonTextSize}" />
                  <Trigger Property="IsEnabled" Value="False" TargetType="Button">
                      <Setter Property="TextColor" Value="#909090" />
                      <Setter Property="BackgroundColor" Value="#C0C0C0" />

This works on both iOS and Android but on WinPhone 8.1 Silverlight the button simply disappears when it's disabled. It is there as it can be tapped but it's not visibla at all.

Any ideas?

Sign In or Register to comment.