Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

Disabled button style on Windows Phone

$
0
0

I'd like to change disabled button style on WindowsPhone, the solution below works on Android, but on WindowsPhone style is changed for a slight moment to desired and later is set to default (gray borders and transparent background). Am I doing something wrong or is it bug?

      <Style TargetType="Button">
        <Style.Triggers>
          <Trigger TargetType="Button" Property="IsEnabled" Value="False">
            <Setter Property="BackgroundColor" Value="Maroon"></Setter>
          </Trigger>
          <Trigger TargetType="Button" Property="IsEnabled" Value="True">
            <Setter Property="BackgroundColor" Value="Green"></Setter>
          </Trigger>
        </Style.Triggers>
      </Style>

Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>