Color
EditThe Color
plugin provides native implementations for conversion from System.Drawing.Color
to platform-specific Color
implementations.
public interface IMvxNativeColor
{
object ToNative(System.Drawing.Color color);
}
This plugin is available on all platforms, but not when using Xamarin.Forms, yet. (you can check this issue to find a workaround)
This plugin also provides a number of useful Color-outputting ValueConverters - see Mvx Color Value Conversion for information on these. If you wish to create your own Color ValueConverters, then this plugin provides the base classes MvxColorValueConverter
and MvxColorValueConverter<T>
.
The Android version of this plugin also registers some Binding Targets for use with Color
BackgroundColor
for any AndroidView
TextColor
for any AndroidTextView