here I'm once more with another question about Windows Phone.
I just created some custom buttons and use they as background on my buttons. I also created a grayed button to show as disabled button.
But if I disable using the button1.isEnabled = false, the background disappear
Searching on the net I found a way using a Style tag, but I never used before. I tried but, it's aways returns me a problem, can someone give me a example? My Code:
<Button x:Name="btSalvar" Content="Salvar Cor" Margin="68,477,70,0" VerticalAlignment="Top" BorderBrush="{x:Null}" BorderThickness="0" Height="100" Click="btSalvar_Click" ClickMode="Press" IsEnabled="True" Foreground="White">
<Button.Style>
<Style.Triggers>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Background" Value="/Imagens/Buttons/ButtonGray01.png"/>
</Trigger>
</Style.Triggers>
</Button.Style>
</Button>
Is there a way to use Style in Windows Phone 8.1 or another way to set a custom background on button with IsDisabled = false?