All the credits for solution described in this post goes my friend qbus. He saved few hours of my life and my sanity ;-)
In Xamarin.Forms application I have a button with non-default styling (defined in XAML). Target platforms are iOS and Android. Enabled and disabled states should obviously be distinguished with colors.
The most straightforward solution that makes use of Data Triggers works well for Android. For some reason it doesn’t want to work properly on iOS. If the button is initially disabled it displays correctly in this state but after changing
true and then back to
false it does not anymore. Interestingly the background taken from style setter is good, but not the text color property.