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

Problem with understanding MVVM

$
0
0

Hi all. I have a problem with this tutorial :
https://developer.xamarin.com/guides/cross-platform/xamarin-forms/user-interface/xaml-basics/data_bindings_to_mvvm/#Interactive_MVVM

At the part "Interactive MVVM", in class HslViewModel, Why do we need call OnPropertyChanged for each Property Hue, Saturation, Luminosity ?
I think it is unnecessary. Just only call OnPropertyChanged in setter of Color is enough.
I tried comment out them ( except OnPropertyChanged in setter of Color ) and It's still working fine.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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