Created
June 26, 2018 09:20
-
-
Save fdundjer/9de5f464312997a14b06d88962771fa4 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 System; | |
using Android.Graphics; | |
using Android.Widget; | |
using MvvmCross.Binding; | |
using MvvmCross.Binding.Bindings.Target; | |
namespace Execom.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