예제 #1
0
 public static void UpdateTextColor(this AppCompatButton button, XColor color, ColorStateList?defaultColor)
 {
     if (color.IsDefault)
     {
         button.SetTextColor(defaultColor);
     }
     else
     {
         button.SetTextColor(color.ToNative());
     }
 }
예제 #2
0
 public static Task <UIImage> AssertContainsColor(this UIView view, Microsoft.Maui.Color expectedColor) =>
 AssertContainsColor(view, expectedColor.ToNative());