title: Change button text color in disabled button (Xamarin.Forms)
body: <p>I need to change the text color of a button when it is disabled, I have created a custom renderer for iOS and one for Android. The iOS worked perfectly, since the android does not change the color, I have also created triggers via styles and also does not solve.</p>
  
  <p>How to make color swap work for Xamarin.Forms?</p>
  
  <p>Android Renderer:</p>
  
  <pre><code>[assembly: ExportRenderer(typeof(Button), typeof(MyButtonRenderer))]
  namespace xxxxxx.Droid.Renderers
  {
      public class MyButtonRenderer : ButtonRenderer
      {
          protected override void OnElementChanged(ElementChangedEventArgs&lt;Button&gt; e)
          {
              base.OnElementChanged(e);
  
              if (Control != null)
                  Control.SetTextColor(Color.White.ToAndroid());
  
              if (e != null)
              {
                  e.NewElement.TextColor = Color.White;
                  e.OldElement.TextColor = Color.White;
              }
          }
      }
  }
  </code></pre>
  
  <p>This state change is changed according to the CanExecute of my commands, this would be the default style applied.</p>
  
  <p>Neither of these ways solves</p>