Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@fdundjer
Created January 25, 2021 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fdundjer/1d9a74c53080dc0f0b172a41288c1492 to your computer and use it in GitHub Desktop.
Save fdundjer/1d9a74c53080dc0f0b172a41288c1492 to your computer and use it in GitHub Desktop.
using Android.Graphics;
using Android.Widget;
using MvvmCross.Binding;
using MvvmCross.Binding.Bindings.Target;
namespace HTEC.TargetBinding.Android.Bindings
{
public class TintColorMvxTargetBinding : MvxTargetBinding<ImageView, Color>
{
public TintColorMvxTargetBinding(ImageView target)
: base(target)
{
}
public override MvxBindingMode DefaultMode => MvxBindingMode.OneWay;
protected override void SetValue(Color value)
{
Target.SetColorFilter(value);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment