App.xaml
<Style x:Key="DefaultButtonStyle" TargetType="Button">
<Setter Property="VerticalOptions" Value="Center" />
<Setter Property="BackgroundColor" Value="Green" />
<Setter Property="CornerRadius" Value="10" />
<Setter Property="TextColor" Value="White" />
</Style>
View.xaml
<Button
Style="{x:Static res:Styles.DefaultButtonStyle}"
IsEnabled="false"
Text="Sign" />
From the code above, it produces an undesirable look of a Button. The result would either be: text is not visible or the default IsEnabled appearance doesn't get applied. It still retain the other properties such as button click event is disabled.
This bug only occurs in Xamarin.iOS
The button should appear disabled while having a corner radius, green background and white text color.
Text is not visible or the default IsEnabled appearance doesn't get applied
Will get back to this
Will get back to this
Can confirm this. We need https://github.com/xamarin/Xamarin.Forms/pull/5299 DisabledTextColor. The default disabled button color on iOS is not visible on a green button. Hope this gets merged soon.
Most helpful comment
Can confirm this. We need https://github.com/xamarin/Xamarin.Forms/pull/5299
DisabledTextColor. The default disabled button color on iOS is not visible on a green button. Hope this gets merged soon.