I have converter like below in that I want to return my own Hex or RGB color.
In iOS
public class PinkSelectedWhiteUnselectedValueConverter : MvxValueConverter<bool, UIColor> {
UIColor purePink = UIColor.FromRGB(233, 60, 172);
protected override UIColor Convert(bool value, Type targetType,object parameter, CultureInfo culture) {
return (bool)value ? purePink : UIColor.White;
}
}
it's working fine
But in Android, it's not working
public class PinkSelectedWhiteUnSelectedValueConverter : MvxValueConverter<bool, Color> {
Color colorPink = (Color)new System.Drawing.ColorConverter().ConvertFromString("#e93cac");
protected override Color Convert(bool value, Type targetType, object parameter, CultureInfo culture) {
return (bool)value ? colorPink : Color.White;
}
}
Please help me on that thanks in advance.