Exemple #1
0
        // This method is called by the Set accessor of each property.
        // The CallerMemberName attribute that is applied to the optional propertyName
        // parameter causes the property name of the caller to be substituted as an argument.
        protected void NotifyPropertyChanged([CallerMemberName] string propertyName = null)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));

            DependencyHelper.NotifyDependencies(propertyName, propertyDependencies, NotifyPropertyChanged);
        }
Exemple #2
0
 protected void RegisterDependencies()
 {
     propertyDependencies = DependencyHelper.GetDependenciesDictionary(this);
 }