{"id":269273,"date":"2015-11-30T10:35:02","date_gmt":"2015-11-30T07:35:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=269273"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=269273","title":{"rendered":"\u0411\u0430\u0437\u043e\u0432\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f INotifyPropertyChanged"},"content":{"rendered":"<p>       <i>WPF \u0432 \u0447\u0451\u043c-\u0442\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043b \u0441\u0443\u0434\u044c\u0431\u0443 js \u2014 \u0432 \u0441\u0438\u043b\u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0440\u0435\u0448\u0451\u043d\u043d\u044b\u0445 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u043f\u0440\u043e\u0431\u043b\u0435\u043c <a href=\"http:\/\/habrahabr.ru\/post\/271105\/\">\u043c\u043d\u043e\u0433\u0438\u0435<\/a> <a href=\"http:\/\/habrahabr.ru\/post\/270979\/\">\u043f\u044b\u0442\u0430\u044e\u0442\u0441\u044f<\/a> \u0441\u0442\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u043e\u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u043d\u0430\u0440\u0430\u0432\u043d\u0435 \u0441 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/\u0414\u0440\u0435\u0437,_\u041a\u0430\u0440\u043b\">\u041a\u0430\u0440\u043b\u043e\u043c \u0444\u043e\u043d \u0414\u0440\u0435\u0437\u0435\u043c<\/a>.<\/i><\/p>\n<h3>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430<\/h3>\n<p>  \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 INPC \u0432 ViewModel \u0447\u0430\u0441\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u0437\u0430\u0432\u0438\u0441\u044f\u0449\u0438\u0435 \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0438\u043b\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c\u044b\u0435 \u043d\u0430 \u0438\u0445 \u043e\u0441\u043d\u043e\u0432\u0435. \u0414\u043b\u044f .net 4.0 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0441 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u0435\u043c, \u0447\u0442\u043e <a href=\"https:\/\/msdn.microsoft.com\/ru-ru\/library\/system.runtime.compilerservices.callermembernameattribute(v=vs.110).aspx\">CallerMemberNameAttribute<\/a> \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u044d\u0442\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 (\u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 <a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.Bcl\/\">\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f<\/a>, \u0435\u0441\u043b\u0438 \u0432\u044b <a href=\"http:\/\/stackoverflow.com\/questions\/18840924\/callermembername-in-net-4-0-not-working\">\u043c\u0430\u0433 \u0438 \u043a\u0443\u0434\u0435\u0441\u043d\u0438\u043a<\/a>).<\/p>\n<h3>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h3>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435<\/b><\/p>\n<div class=\"spoiler_text\">\u0420\u0430\u0437\u0431\u0438\u0440\u0430\u044f \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0440\u0430\u0437 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u0434\u0435\u0441\u044f\u0442\u043a\u0430\u043c\u0438 \u0441\u0442\u0440\u043e\u043a \u0432 package-\u0444\u0430\u0439\u043b\u0435, \u043c\u043d\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0432\u0441\u0451 \u0431\u043b\u0438\u0436\u0435 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f UNISTACK, \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u043e\u0435 \u0445\u043e\u0440\u043e\u0448\u043e \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0442\u0438\u043f\u043e\u0432\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 \u0442\u0438\u043f\u043e\u0432\u044b\u0445 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f\u0445 \u0438 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043c\u0435\u0441\u0442\u043e \u0434\u043b\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u043f\u043e\u0434 \u043d\u0443\u0436\u0434\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u0418 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0441 \u044d\u0442\u0438\u043c \u044f \u0432\u0438\u0436\u0443 <a href=\"http:\/\/i72.narod.ru\/humor\/revolution.htm\">\u0444\u0430\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0438<\/a> \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u2014 \u0433\u0440\u043e\u043c\u043e\u0437\u0434\u043a\u043e\u0441\u0442\u044c \u0438 \u0442\u044f\u0436\u0435\u043b\u043e\u0432\u0435\u0441\u043d\u043e\u0441\u0442\u044c. \u0418, \u0438\u043d\u043e\u0433\u0434\u0430, \u043d\u0435\u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0441\u0442\u044c.<br \/>  \u0412 <a href=\"http:\/\/habrahabr.ru\/post\/246961\/\">\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u044f \u043e\u0431\u0435\u0449\u0430\u043b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u0430\u043a \u0440\u0430\u0437 \u0442\u0430\u043a\u043e\u0439 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u2014 \u043a\u043e\u0433\u0434\u0430 \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0439 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u043e\u0439 \u0432 <a href=\"https:\/\/github.com\/rikrop\/Rikrop.Core.Wpf\/blob\/master\/Rikrop.Core.Wpf\/Async\/ServiceExecutorFactory.cs\">\u043e\u0431\u0451\u0440\u0442\u043a\u0435<\/a> \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442\u0441\u044f UI \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f BusyIndicator \u0438\u043b\u0438 \u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u0430\u043d\u0430\u043b\u043e\u0433. \u0418 \u044f \u0432\u0441\u0451 \u0435\u0449\u0451 \u043e\u0431\u0435\u0449\u0430\u044e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440. \u0422\u0430\u043a \u043c\u044b \u043e\u0431\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0432\u0441\u0435 \u0432\u044b\u0437\u043e\u0432\u044b WCF, \u043d\u043e \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438 \u0434\u043b\u044f \u0434\u043e\u043b\u0433\u043e\u0438\u0433\u0440\u0430\u044e\u0449\u0438\u0445 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439, \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439 \u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439.  <\/div>\n<\/div>\n<p>  \u041e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043e\u0441\u043d\u043e\u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Rikrop.Core.Wpf \u0441\u043b\u0443\u0436\u0438\u0442 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 INotifyProprtyChanged \u2014 <a href=\"https:\/\/github.com\/rikrop\/Rikrop.Core.Wpf\/blob\/master\/Rikrop.Core.Wpf\/ChangeNotifier.cs\">ChangeNotifier<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0441\u0432\u043e\u0438\u043c \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u0430\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 \u043c\u0435\u0442\u043e\u0434\u043e\u0432:  <\/p>\n<pre><code class=\"cs\">[DataContract(IsReference = true)] [Serializable] public abstract class ChangeNotifier : INotifyPropertyChanged {     public event PropertyChangedEventHandler PropertyChanged;       protected void SetProperty&lt;T&gt;(ref T field, T value, [CallerMemberName] string propertyName = &quot;&quot;)       protected void NotifyPropertyChanged([CallerMemberName] string propertyName = &quot;&quot;)     protected void NotifyPropertyChanged(Expression&lt;Func&lt;object, object&gt;&gt; property)     protected void NotifyPropertyChanged(Expression&lt;Func&lt;object&gt;&gt; property)     protected virtual void OnPropertyChanged(string propertyName)       protected ILinkedPropertyChanged AfterNotify(Expression&lt;Func&lt;object&gt; property)     protected ILinkedPropertyChanged BeforeNotify(Expression&lt;Func&lt;object&gt;&gt; property)     protected ILinkedPropertyChanged AfterNotify&lt;T&gt;(T changeNotifier, Expression&lt;Func&lt;T, object&gt;&gt; property)         where T : INotifyPropertyChanged     protected ILinkedPropertyChanged BeforeNotify&lt;T&gt;(T changeNotifier, Expression&lt;Func&lt;T, object&gt;&gt; property)         where T : ChangeNotifier       protected ILinkedObjectChanged Notify(Expression&lt;Func&lt;object&gt;&gt; property) } <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0436\u0435 \u0441\u0440\u0430\u0437\u0443 \u0441\u0442\u043e\u0438\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b ILinkedPropertyChanged \u0438 ILinkedObjectChanged:   <\/p>\n<pre><code class=\"cs\">public interface ILinkedPropertyChanged {     ILinkedPropertyChanged Notify(Expression&lt;Func&lt;object&gt;&gt; targetProperty);     ILinkedPropertyChanged Execute(Action action); }   public interface ILinkedObjectChanged {     ILinkedObjectChanged AfterNotify(Expression&lt;Func&lt;object&gt;&gt; sourceProperty);     ILinkedObjectChanged AfterNotify&lt;T&gt;(T sourceChangeNotifier, Expression&lt;Func&lt;T, object&gt;&gt; sourceProperty)             where T : INotifyPropertyChanged;       ILinkedObjectChanged BeforeNotify(Expression&lt;Func&lt;object&gt;&gt; sourceProperty);     ILinkedObjectChanged BeforeNotify&lt;T&gt;(T sourceChangeNotifier, Expression&lt;Func&lt;T, object&gt;&gt; sourceProperty)             where T : ChangeNotifier; } <\/code><\/pre>\n<p>  <\/p>\n<h3>\u041d\u0430\u0434\u0443\u043c\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/h3>\n<p>  \u041a\u0443\u0434\u0430 \u0436\u0435 \u0431\u0435\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0443\u0442 \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0430\u0434\u0443\u043c\u0430\u043d\u043d\u044b\u043c \u0438 \u043d\u0435\u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u043c? \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f ChangeNotifier.<\/p>\n<p>  \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441 N \u043e\u0434\u043d\u043e\u0442\u0438\u043f\u043d\u044b\u0445 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u043e \u0432\u0441\u0435\u0445 \u0434\u0430\u0442\u0447\u043a\u043e\u0432. \u041a\u0430\u0436\u0434\u044b\u0439 \u0434\u0430\u0442\u0447\u0438\u043a \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0435 \u043e\u0442 \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e. \u041f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0430 \u0437\u0430\u0442\u0435\u043c \u0443\u0436\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u0438\u0442\u044c \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0430\u0442\u0447\u0438\u043a\u0435. \u041f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u044f \u043e\u0442 \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432.   <\/p>\n<pre><code class=\"cs\">\/\/\/ &lt;summary&gt; \/\/\/ \u0414\u0430\u0442\u0447\u0438\u043a. \/\/\/ &lt;\/summary&gt; public class Sensor : ChangeNotifier {     \/\/\/ &lt;summary&gt;     \/\/\/ \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f.     \/\/\/ &lt;\/summary&gt;     public int Value     {         get { return _value; }         set { SetProperty(ref _value, value); }     }     private int _value;      \/\/\/ &lt;summary&gt;     \/\/\/ \u041e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u043e\u0442 \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e.     \/\/\/ &lt;\/summary&gt;     public double Delta     {         get { return _delta; }         set { SetProperty(ref _delta, value); }     }     private double _delta;      public Sensor(IAvgValueIndicator indicator)     {         \/\/ \u0412 \u0443\u0433\u043e\u0434\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043b\u0438\u0448\u043d\u0435\u0433\u043e         BeforeNotify(() =&gt; Value).Notify(() =&gt; indicator.AvgValue);         IValueProvider valueProvider = new RandomValueProvider();         Value = valueProvider.GetValue(this);     } }  \/\/\/ &lt;summary&gt; \/\/\/ \u041f\u0440\u0438\u0431\u043e\u0440 \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u0430\u043c\u0438, \u043f\u0440\u043e\u0432\u043e\u0434\u044f\u0449\u0438\u043c\u0438 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f. \/\/\/ &lt;\/summary&gt; public class Device : ChangeNotifier, IAvgValueIndicator {     \/\/\/ &lt;summary&gt;     \/\/\/ \u0427\u0438\u0441\u043b\u043e \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432.     \/\/\/ &lt;\/summary&gt;     private const int SensorsCount = 3;      \/\/\/ &lt;summary&gt;     \/\/\/ \u041c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432 \u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435.     \/\/\/ &lt;\/summary&gt;     public IReadOnlyCollection&lt;Sensor&gt; Sensors     {         get { return _sensors; }     }     private IReadOnlyCollection&lt;Sensor&gt; _sensors;      \/\/\/ &lt;summary&gt;     \/\/\/ \u0421\u0440\u0435\u0434\u043d\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432.     \/\/\/ &lt;\/summary&gt;     public double AvgValue     {         get { return (Sensors.Sum(s =&gt; s.Value)) \/ (double)Sensors.Count; }     }      public Device()     {         InitSensors();         AfterNotify(() =&gt; AvgValue).Execute(UpdateDelta);         NotifyPropertyChanged(() =&gt; AvgValue);     }      private void InitSensors()     {         var sensors = new List&lt;Sensor&gt;();         for (int i = 0; i &lt; SensorsCount; i++)         {             var sensor = new Sensor(this);             \/\/BeforeNotify(sensor, s =&gt; s.Value).Notify(() =&gt; AvgValue);             sensors.Add(sensor);         }          _sensors = sensors;     }      private void UpdateDelta()     {         foreach (var sensor in Sensors)             sensor.Delta = Math.Abs(sensor.Value - AvgValue);     } } <\/code><\/pre>\n<p>  \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0435 \u043d\u0430\u0441 \u0441\u0442\u0440\u043e\u043a\u0438 \u043a\u043e\u0434\u0430:   <\/p>\n<pre><code class=\"cs\">SetProperty(ref _delta, value); NotifyPropertyChanged(() =&gt; AvgValue); AfterNotify(() =&gt; AvgValue).Execute(UpdateDelta); BeforeNotify(() =&gt; Value).Notify(() =&gt; indicator.AvgValue); BeforeNotify(sensor, s =&gt; s.Value).Notify(() =&gt; AvgValue); <\/code><\/pre>\n<p>  \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043a\u0430\u0436\u0434\u0443\u044e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432. <\/p>\n<h3>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h3>\n<p>  <\/p>\n<h4>SetProperty(ref _delta, value)<\/h4>\n<p>  \u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442 \u043f\u043e\u043b\u044e, \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 \u043c\u0435\u0442\u043e\u0434\u0430, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u044f\u0435\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u0432 \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u0438\u043c\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u0442\u0440\u0435\u0442\u044c\u0438\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c. \u0415\u0441\u043b\u0438 \u0442\u0440\u0435\u0442\u0438\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043d\u0435 \u0437\u0430\u0434\u0430\u043d, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0438\u043c\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430.   <\/p>\n<pre><code class=\"cs\">protected void SetProperty&lt;T&gt;(ref T field, T value, [CallerMemberName] string propertyName = &quot;&quot;) {     if (Equals(field, value))     {         return;     }       field = value;     NotifyPropertyChangedInternal(propertyName); } <\/code><\/pre>\n<p>  <\/p>\n<h4>NotifyPropertyChanged(() =&gt; AvgValue)<\/h4>\n<p>  \u0412\u0441\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442 \u043b\u0438 \u043e\u043d\u0438 \u0434\u0435\u0440\u0435\u0432\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0438\u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u043c\u0435\u043d\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0438\u0442\u043e\u0433\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043c\u0435\u0442\u043e\u0434:   <\/p>\n<pre><code class=\"cs\">private void NotifyPropertyChanged(PropertyChangedEventHandler handler, string propertyName) {     NotifyLinkedPropertyListeners(propertyName, BeforeChangeLinkedChangeNotifierProperties);       if (handler != null)     {         handler(this, new PropertyChangedEventArgs(propertyName));     }     OnPropertyChanged(propertyName);       NotifyLinkedPropertyListeners(propertyName, AfterChangeLinkedChangeNotifierProperties); }   private void NotifyLinkedPropertyListeners(string propertyName,                                             Dictionary&lt;string, LinkedPropertyChangeNotifierListeners&gt; linkedChangeNotifiers) {     LinkedPropertyChangeNotifierListeners changeNotifierListeners;     if (linkedChangeNotifiers.TryGetValue(propertyName, out changeNotifierListeners))     {         changeNotifierListeners.NotifyAll();     } } <\/code><\/pre>\n<p>  \u041a\u0430\u0436\u0434\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442-\u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a ChangeNotifier \u0445\u0440\u0430\u043d\u0438\u0442 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u0441\u0432\u044f\u0437\u043e\u043a \u00ab\u0438\u043c\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u00bb -&gt; \u00ab\u043d\u0430\u0431\u043e\u0440 \u0441\u043b\u0443\u0448\u0430\u0442\u0435\u043b\u0435\u0439 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u00bb:   <\/p>\n<pre><code class=\"cs\">private Dictionary&lt;string, LinkedPropertyChangeNotifierListeners&gt; AfterChangeLinkedChangeNotifierProperties { get { ... } } private Dictionary&lt;string, LinkedPropertyChangeNotifierListeners&gt; BeforeChangeLinkedChangeNotifierProperties { get { ... } } <\/code><\/pre>\n<p>  \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043b\u0430\u0441\u0441 <a href=\"https:\/\/github.com\/rikrop\/Rikrop.Core.Wpf\/blob\/master\/Rikrop.Core.Wpf\/ChangeNotifier.cs#L375\">LinkedPropertyChangeNotifierListeners<\/a>:  <\/p>\n<pre><code class=\"cs\">private class LinkedPropertyChangeNotifierListeners {     \/\/\/ &lt;summary&gt;     \/\/\/ \u041a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f \u043f\u0430\u0440 &quot;\u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442&quot; - &quot;\u043d\u0430\u0431\u043e\u0440 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043d\u0430\u0434 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c&quot;     \/\/\/ &lt;\/summary&gt;     private readonly Dictionary&lt;ChangeNotifier, OnNotifyExecuties&gt; _linkedObjects =         new Dictionary&lt;ChangeNotifier, OnNotifyExecuties&gt;();       \/\/\/ &lt;summary&gt;     \/\/\/ \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430.     \/\/\/ &lt;\/summary&gt;     \/\/\/ &lt;param name=&quot;linkedObject&quot;&gt;\u0421\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442.&lt;\/param&gt;     \/\/\/ &lt;param name=&quot;targetPropertyName&quot;&gt;\u0418\u043c\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0434\u043b\u044f \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f.&lt;\/param&gt;     public void Register(ChangeNotifier linkedObject, string targetPropertyName)     {         var executies = GetOrCreateExecuties(linkedObject);           if (!executies.ProprtiesToNotify.Contains(targetPropertyName))         {             executies.ProprtiesToNotify.Add(targetPropertyName);         }     }       \/\/\/ &lt;summary&gt;     \/\/\/ \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430.     \/\/\/ &lt;\/summary&gt;     \/\/\/ &lt;param name=&quot;linkedObject&quot;&gt;\u0421\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442.&lt;\/param&gt;     \/\/\/ &lt;param name=&quot;action&quot;&gt;\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430.&lt;\/param&gt;     public void Register(ChangeNotifier linkedObject, Action action)     {         var executies = GetOrCreateExecuties(linkedObject);           if (!executies.ActionsToExecute.Contains(action))         {             executies.ActionsToExecute.Add(action);         }     }       \/\/\/ &lt;summary&gt;     \/\/\/ \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u043c\u0435\u044e\u0449\u0435\u0433\u043e\u0441\u044f \u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043d\u0430\u0434 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c.     \/\/\/ &lt;\/summary&gt;     \/\/\/ &lt;param name=&quot;linkedObject&quot;&gt;\u0421\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442.&lt;\/param&gt;     \/\/\/ &lt;returns&gt;\u041e\u0431\u0451\u0440\u0442\u043a\u0430 \u043d\u0430\u0434 \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0441\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c.&lt;\/returns&gt;     private OnNotifyExecuties GetOrCreateExecuties(ChangeNotifier linkedObject)     {         OnNotifyExecuties executies;         if (!_linkedObjects.TryGetValue(linkedObject, out executies))         {             executies = new OnNotifyExecuties();             _linkedObjects.Add(linkedObject, executies);         }         return executies;     }       \/\/\/ &lt;summary&gt;     \/\/\/ \u0412\u044b\u0437\u043e\u0432 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u044b.     \/\/\/ &lt;\/summary&gt;     public void NotifyAll()     {         foreach (var linkedObject in _linkedObjects)         {             NotifyProperties(linkedObject.Key, linkedObject.Value.ProprtiesToNotify);             ExecuteActions(linkedObject.Value.ActionsToExecute);         }     }       \/\/\/ &lt;summary&gt;     \/\/\/ \u0412\u044b\u0437\u043e\u0432 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043d\u0430\u0434 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c.     \/\/\/ &lt;\/summary&gt;     \/\/\/ &lt;param name=&quot;linkedObject&quot;&gt;\u0421\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442.&lt;\/param&gt;     \/\/\/ &lt;param name=&quot;properties&quot;&gt;\u0418\u043c\u0435\u043d\u0430 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0434\u043b\u044f \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f.&lt;\/param&gt;     private void NotifyProperties(ChangeNotifier linkedObject, IEnumerable&lt;string&gt; properties)     {         foreach (var targetProperty in properties)         {             linkedObject.NotifyPropertyChangedInternal(targetProperty);         }     }       \/\/\/ &lt;summary&gt;     \/\/\/ \u0412\u044b\u0437\u043e\u0432 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439.     \/\/\/ &lt;\/summary&gt;     \/\/\/ &lt;param name=&quot;actions&quot;&gt;\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f&lt;\/param&gt;     private void ExecuteActions(IEnumerable&lt;Action&gt; actions)     {         foreach (var action in actions)         {             action();         }     }       private class OnNotifyExecuties     {         private List&lt;string&gt; _proprtiesToNotify;         private List&lt;Action&gt; _actionsToExecute;           public List&lt;string&gt; ProprtiesToNotify         {             get { return _proprtiesToNotify ?? (_proprtiesToNotify = new List&lt;string&gt;()); }         }           public List&lt;Action&gt; ActionsToExecute         {             get { return _actionsToExecute ?? (_actionsToExecute = new List&lt;Action&gt;()); }         }     } } <\/code><\/pre>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u0435-\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0432\u0435\u0434\u043e\u043c\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u0432, \u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0434\u043e \u0438\u043b\u0438 \u043f\u043e\u0441\u043b\u0435 \u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438. <\/p>\n<p>  \u0421\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438. \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u044c \u0440\u0430\u0437 \u043f\u044b\u0442\u0430\u043b\u0438\u0441\u044c \u043d\u0430\u0439\u0442\u0438 \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u0434\u0432\u0443\u0445\u043a\u0440\u0430\u0442\u043d\u043e\u0439 \u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u0442\u043e \u0431\u0443\u0434\u0435\u0442\u0435 \u043e\u0447\u0435\u043d\u044c \u0440\u0430\u0434\u044b \u0442\u0430\u043a\u043e\u0439 \u0444\u0438\u0447\u0435. <\/p>\n<h4>AfterNotify(() =&gt; AvgValue).Execute(UpdateDelta)<br \/>  BeforeNotify(sensor, s =&gt; s.Value).Notify(() =&gt; AvgValue)<br \/>  BeforeNotify(() =&gt; Value).Notify(() =&gt; indicator.AvgValue);<\/h4>\n<p>  \u0414\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043d\u0430\u0434 \u043d\u0438\u043c \u0441\u043b\u0443\u0436\u0438\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0437\u043e\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 AfterNotify\/BeforeNotify \u043a\u043b\u0430\u0441\u0441\u0430 ChangeNotifier \u0438 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 Notify\/Execute \u043a\u043b\u0430\u0441\u0441\u043e\u0432-\u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u043e\u0432 ILinkedPropertyChanged. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u044e\u0442 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u043f\u043e \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044e \u043a ChangeNotifier \u043a\u043b\u0430\u0441\u0441\u044b AfterLinkedPropertyChanged \u0438 BeforeLinkedPropertyChanged.   <\/p>\n<pre><code class=\"cs\">\/\/\/ &lt;summary&gt; \/\/\/ \u0421\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u0435\u043b\u044c \u0434\u043b\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043f\u0435\u0440\u0435\u0434 \u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0439 \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430. \/\/\/ &lt;\/summary&gt; private class BeforeLinkedPropertyChanged : ILinkedPropertyChanged {     \/\/\/ &lt;summary&gt;     \/\/\/ \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442.     \/\/\/ &lt;\/summary&gt;     private readonly ChangeNotifier _sourceChangeNotifier;       \/\/\/ &lt;summary&gt;     \/\/\/ \u0418\u043c\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430.     \/\/\/ &lt;\/summary&gt;     private readonly string _sourceProperty;       \/\/\/ &lt;summary&gt;     \/\/\/ \u0421\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442.     \/\/\/ &lt;\/summary&gt;     private readonly ChangeNotifier _targetChangeNotifier;       public BeforeLinkedPropertyChanged(ChangeNotifier sourceChangeNotifier,                                         string sourceProperty,                                         ChangeNotifier targetChangeNotifier)     {         _sourceChangeNotifier = sourceChangeNotifier;         _sourceProperty = sourceProperty;         _targetChangeNotifier = targetChangeNotifier;     }       \/\/\/ &lt;summary&gt;     \/\/\/ \u0421\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0438 \u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0441 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c.     \/\/\/ &lt;\/summary&gt;     \/\/\/ &lt;param name=&quot;targetProperty&quot;&gt;\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0446\u0435\u043b\u0435\u0432\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430.&lt;\/param&gt;     \/\/\/ &lt;returns&gt;\u0421\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u0435\u043b\u044c.&lt;\/returns&gt;     public ILinkedPropertyChanged Notify(Expression&lt;Func&lt;object&gt;&gt; targetProperty)     {         _sourceChangeNotifier.RegisterBeforeLinkedPropertyListener(                                     _sourceProperty, _targetChangeNotifier, (string) targetProperty.GetName());         return this;     }       \/\/\/ &lt;summary&gt;     \/\/\/ \u0421\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c.     \/\/\/ &lt;\/summary&gt;     \/\/\/ &lt;param name=&quot;action&quot;&gt;\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u0435.&lt;\/param&gt;     \/\/\/ &lt;returns&gt;\u0421\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u0435\u043b\u044c.&lt;\/returns&gt;     public ILinkedPropertyChanged Execute(Action action)     {         _sourceChangeNotifier.RegisterBeforeLinkedPropertyListener(                                     _sourceProperty, _targetChangeNotifier, action);         return this;     } } <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u044b RegisterBeforeLinkedPropertyListener\/RegisterAfterLinkedPropertyListener \u043a\u043b\u0430\u0441\u0441\u0430 ChangeNotifier:   <\/p>\n<pre><code class=\"cs\">public abstract class ChangeNotifier : INotifyPropertyChanged {     ...     private void RegisterBeforeLinkedPropertyListener(string linkedPropertyName,                                     ChangeNotifier targetObject,                                     string targetPropertyName)     {         RegisterLinkedPropertyListener(                                     linkedPropertyName, targetObject,                                      targetPropertyName, BeforeChangeLinkedChangeNotifierProperties);     }       private void RegisterBeforeLinkedPropertyListener(string linkedPropertyName,                                     ChangeNotifier targetObject,                                     Action action)     {         RegisterLinkedPropertyListener(linkedPropertyName, targetObject, action,                                     BeforeChangeLinkedChangeNotifierProperties);     }       private static void RegisterLinkedPropertyListener(string linkedPropertyName,                                     ChangeNotifier targetObject,                                     string targetPropertyName,                                     Dictionary&lt;string, LinkedPropertyChangeNotifierListeners&gt; linkedProperties)     {         GetOrCreatePropertyListeners(linkedPropertyName, linkedProperties).Register(targetObject, targetPropertyName);     }       private static void RegisterLinkedPropertyListener(string linkedPropertyName,                                     ChangeNotifier targetObject,                                     Action action,                                     Dictionary&lt;string, LinkedPropertyChangeNotifierListeners&gt; linkedProperties)     {         GetOrCreatePropertyListeners(linkedPropertyName, linkedProperties).Register(targetObject, action);     }       private static LinkedPropertyChangeNotifierListeners GetOrCreatePropertyListeners(string linkedPropertyName,                                     Dictionary&lt;string, LinkedPropertyChangeNotifierListeners&gt; linkedProperties)     {         LinkedPropertyChangeNotifierListeners changeNotifierListeners;         if (!linkedProperties.TryGetValue(linkedPropertyName, out changeNotifierListeners))         {             changeNotifierListeners = new LinkedPropertyChangeNotifierListeners();             linkedProperties.Add(linkedPropertyName, changeNotifierListeners);         }         return changeNotifierListeners;     }     ... } <\/code><\/pre>\n<p>  \u041c\u0435\u0442\u043e\u0434\u044b AfterNotify\/BeforeNotify \u0441\u043e\u0437\u0434\u0430\u044e\u0442 \u043d\u043e\u0432\u044b\u0435 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u044b \u00ab\u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u0435\u043b\u0435\u0439\u00bb \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u044f:   <\/p>\n<pre><code class=\"cs\">protected ILinkedPropertyChanged AfterNotify(Expression&lt;Func&lt;object&gt;&gt; property) {     var propertyCall = PropertyCallHelper.GetPropertyCall(property);     return new AfterLinkedPropertyChanged((INotifyPropertyChanged) propertyCall.TargetObject,                                             propertyCall.TargetPropertyName,                                             this); }   protected ILinkedPropertyChanged BeforeNotify(Expression&lt;Func&lt;object&gt;&gt; property) {     var propertyCall = PropertyCallHelper.GetPropertyCall(property);     return new BeforeLinkedPropertyChanged((ChangeNotifier) propertyCall.TargetObject,                                             propertyCall.TargetPropertyName,                                             this); }   protected ILinkedPropertyChanged AfterNotify&lt;T&gt;(T changeNotifier, Expression&lt;Func&lt;T, object&gt;&gt; property)     where T : INotifyPropertyChanged {     return new AfterLinkedPropertyChanged(changeNotifier, property.GetName(), this); }   protected ILinkedPropertyChanged BeforeNotify&lt;T&gt;(T changeNotifier, Expression&lt;Func&lt;T, object&gt;&gt; property)     where T : ChangeNotifier {     return new BeforeLinkedPropertyChanged(changeNotifier, property.GetName(), this); } <\/code><\/pre>\n<p>  \u0418\u0437 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u043b\u0438\u0441\u0442\u0438\u043d\u0433\u0430 \u043c\u043e\u0436\u043d\u043e \u0432\u0438\u0434\u0435\u0442\u044c, \u0447\u0442\u043e \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, \u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043b\u0438\u0431\u043e \u044f\u0432\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440, \u043b\u0438\u0431\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u0434\u0435\u0440\u0435\u0432\u0430 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 <a href=\"https:\/\/github.com\/rikrop\/Rikrop.Core.Wpf\/blob\/master\/Rikrop.Core.Wpf\/PropertyCallHelper.cs\">PropertyCallHelper<\/a>. \u0417\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0438 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442. <\/p>\n<h3>\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043d\u0435 \u043d\u0430\u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043b\u0438\u0441\u0442\u0438\u043d\u0433\u043e\u0432<\/h3>\n<p>  \u041e\u043a. \u0415\u0449\u0451 \u0440\u0430\u0437 \u043d\u0430 \u043f\u0430\u043b\u044c\u0446\u0430\u0445. \u041e\u0431\u044a\u0435\u043a\u0442 ChangeNotifier \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 \u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u0445, \u043d\u043e\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u044d\u0442\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0432\u044b\u0437\u0432\u0430\u043d\u044b \u0434\u043e \u0438\u043b\u0438 \u043f\u043e\u0441\u043b\u0435 \u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438. \u0414\u043b\u044f \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u044b AfterNotify\/BeforeNotify \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u043e\u0432 ILinkedPropertyChanged, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043b\u0435\u0433\u043a\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u0443\u0436\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0432 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438. \u041c\u0435\u0442\u043e\u0434\u044b ILinkedPropertyChanged \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 ILinkedPropertyChanged, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0446\u0435\u043f\u043e\u0447\u043a\u0443 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u0434\u043b\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438. <\/p>\n<p>  \u041f\u0440\u0438 \u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043e\u0431\u044a\u0435\u043a\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f\u043c \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f. <\/p>\n<p>  ChangeNotifier \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438 \u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u0437\u0430\u0442\u0440\u0430\u0442\u044b \u043d\u0430 \u0440\u0430\u0437\u0431\u043e\u0440 \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439. \u0412\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0435. <\/p>\n<h3>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043e\u0431 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438<\/h3>\n<p>  <i>\u042d\u0442\u043e \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0447\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f. \u042f \u0445\u043e\u0442\u0435\u043b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0442\u0438\u043f\u043e\u0432\u043e\u0439 \u0434\u043b\u044f WPF \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 MVVM \u0437\u0430\u0434\u0430\u0447\u0438, \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0443 \u044d\u0442\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0443 \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f, \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u043c\u043e\u0441\u0442\u044c. \u0411\u0435\u0437 \u0437\u043d\u0430\u043d\u0438\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Microsoft Prism 4 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u043b \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u044f\u0442\u044c \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0435\u0440\u0435\u0432\u0430 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u043d\u043e \u0432 \u0440\u0430\u0437\u0431\u043e\u0440\u0435 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 &quot;() =&gt; PropertName&quot;. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0435\u0441\u043b\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u0435, \u0442\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0443\u0432\u0435\u0434\u043e\u043c\u0438\u0442\u044c \u043e\u0431 \u0435\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430. \u0427\u0442\u043e \u043b\u043e\u0433\u0438\u0447\u043d\u043e, \u043d\u043e \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u043e\u0448\u0438\u0431\u043a\u0438. <\/p>\n<p>  \u0412 <a href=\"http:\/\/habrahabr.ru\/post\/270979\/\">\u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u0435\u0441\u0442\u044c \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438, \u043d\u043e \u044d\u0442\u043e\u0442 \u043e\u0431\u0437\u043e\u0440 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u043d\u044b\u043c \u0431\u0435\u0437 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u044b \u044d\u0442\u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439. \u0413\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435 \u043d\u0430\u0447\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u0434\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0434\u043e\u0432\u0435\u0440\u044f\u0435\u0448\u044c \u043a\u0430\u043a \u0441\u0432\u043e\u0435\u043c\u0443. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u043a\u0430\u0436\u0434\u044b\u0439, \u043a\u0442\u043e \u0434\u043e\u0431\u0440\u0430\u043b\u0441\u044f \u0434\u043e \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438, \u0441\u043c\u043e\u0436\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u0441\u043c\u043e\u0436\u0435\u0442 \u0438 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u0447\u0443\u0436\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<\/i>                 <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/271305\/\"> http:\/\/habrahabr.ru\/post\/271305\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <i>WPF \u0432 \u0447\u0451\u043c-\u0442\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043b \u0441\u0443\u0434\u044c\u0431\u0443 js \u2014 \u0432 \u0441\u0438\u043b\u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0440\u0435\u0448\u0451\u043d\u043d\u044b\u0445 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u043f\u0440\u043e\u0431\u043b\u0435\u043c <a href=\"http:\/\/habrahabr.ru\/post\/271105\/\">\u043c\u043d\u043e\u0433\u0438\u0435<\/a> <a href=\"http:\/\/habrahabr.ru\/post\/270979\/\">\u043f\u044b\u0442\u0430\u044e\u0442\u0441\u044f<\/a> \u0441\u0442\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u043e\u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u043d\u0430\u0440\u0430\u0432\u043d\u0435 \u0441 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/\u0414\u0440\u0435\u0437,_\u041a\u0430\u0440\u043b\">\u041a\u0430\u0440\u043b\u043e\u043c \u0444\u043e\u043d \u0414\u0440\u0435\u0437\u0435\u043c<\/a>.<\/i><\/p>\n<h3>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430<\/h3>\n<p>  \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 INPC \u0432 ViewModel \u0447\u0430\u0441\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u0437\u0430\u0432\u0438\u0441\u044f\u0449\u0438\u0435 \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0438\u043b\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c\u044b\u0435 \u043d\u0430 \u0438\u0445 \u043e\u0441\u043d\u043e\u0432\u0435. \u0414\u043b\u044f .net 4.0 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0441 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u0435\u043c, \u0447\u0442\u043e <a href=\"https:\/\/msdn.microsoft.com\/ru-ru\/library\/system.runtime.compilerservices.callermembernameattribute(v=vs.110).aspx\">CallerMemberNameAttribute<\/a> \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u044d\u0442\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 (\u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 <a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.Bcl\/\">\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f<\/a>, \u0435\u0441\u043b\u0438 \u0432\u044b <a href=\"http:\/\/stackoverflow.com\/questions\/18840924\/callermembername-in-net-4-0-not-working\">\u043c\u0430\u0433 \u0438 \u043a\u0443\u0434\u0435\u0441\u043d\u0438\u043a<\/a>).<\/p>\n<h3>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h3>\n<p>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-269273","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/269273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=269273"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/269273\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=269273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=269273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=269273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}