Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Can we animate when a bound property changes?

$
0
0

I am currently binding a label's opacity (could also be done with visibility) to the view model's "IsInvalid" bool property like this...

invalidLabel.SetBinding<LoginViewModel> (Label.OpacityProperty, vm => vm.IsInvalid, BindingMode.OneWay, new BoolToOpacityConverter ());

I'd love it if when it becomes visible (Opacity == 1d) that it would fade in instead of abruptly appear. Is this do-able somehow without a bunch of hoops?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>