public static void UpdateForeground(this MauiCheckBox platformCheckBox, ICheckBox check) { // For the moment, we're only supporting solid color Paint for the iOS Checkbox if (check.Foreground is SolidPaint solid) { platformCheckBox.CheckBoxTintColor = solid.Color; } }
public static void UpdateForeground(this MauiCheckBox nativeCheckBox, ICheckBox check) { var tintBrush = check.Foreground?.ToNative(); if (tintBrush == null) { nativeCheckBox.TintBrush = new SolidColorBrush(UI.Colors.Black); return; } nativeCheckBox.TintBrush = tintBrush; }
public static void UpdateForeground(this MauiCheckBox platformCheckBox, ICheckBox check) { var tintBrush = check.Foreground?.ToPlatform(); if (tintBrush == null) { platformCheckBox.TintBrush = new SolidColorBrush(UI.Colors.Black); return; } platformCheckBox.TintBrush = tintBrush; }
public static void UpdateIsChecked(this MauiCheckBox nativeCheckBox, ICheckBox check) { nativeCheckBox.IsChecked = check.IsChecked; }
public static void UpdateIsChecked(this MauiCheckBox platformCheckBox, ICheckBox check) { platformCheckBox.IsChecked = check.IsChecked; }