public static void UpdateStrokeColor(this ShapeableImageView platformButton, IButtonStroke buttonStroke) { if (buttonStroke.StrokeColor is Color stroke) { platformButton.StrokeColor = ColorStateListExtensions.CreateButton(stroke.ToPlatform()); } }
public static void UpdateStrokeColor(this MaterialButton platformButton, IButtonStroke buttonStroke) { if (buttonStroke.StrokeColor is Color stroke) { platformButton.StrokeColor = ColorStateListExtensions.CreateButton(stroke.ToPlatform()); } }
public static void UpdateStrokeColor(this MaterialButton nativeButton, IButtonStroke buttonStroke) { if (buttonStroke.StrokeColor is Color stroke) { nativeButton.StrokeColor = ColorStateListExtensions.CreateButton(stroke.ToNative()); } }
public static void UpdateStrokeColor(this MaterialButton platformView, IButton button) { if (platformView.Background is BorderDrawable) { platformView.UpdateBorderDrawable(button); return; } if (button is IButtonStroke buttonStroke && buttonStroke.StrokeColor is Color stroke) { platformView.StrokeColor = ColorStateListExtensions.CreateButton(stroke.ToPlatform()); } }