Created
January 25, 2021 10:29
-
-
Save fdundjer/1d9a74c53080dc0f0b172a41288c1492 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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