I changed background color of a button and noticed that when button is disabled (IsEnabled=False) the button is not changed at all and looks same as enabled button. Then I decided to use triggers to set disabled background color as below:
<Style TargetType="Button">
<Setter Property="BackgroundColor" Value="{StaticResource red}" />
<Style.Triggers>
<Trigger TargetType="Button" Property="IsEnabled" Value="True">
<Setter Property="BackgroundColor" Value="{StaticResource red}" />
</Trigger>
<Trigger TargetType="Button" Property="IsEnabled" Value="False">
<Setter Property="BackgroundColor" Value="{StaticResource grey}" />
</Trigger>
</Style.Triggers>
</Style>
Now enabled button looks good, disabled button looks good, but when button is disabled and then I change it to enabled, background color is changed to default one not to one that I defined.
What's is best way to customize disabled button style?