Disabled button style on Windows Phone

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>

Posts

Sign In or Register to comment.