Пример #1
0
        protected virtual void OnChildPropertyChanged(StyleObject subObject, string propertyName)
        {
            if (ChildPropertyChanged != null)
            {
                ChildPropertyChanged(this, new ChildPropertyChangedEventArgs(subObject, propertyName));
            }

            if (Parent != null)
            {
                Parent.OnChildPropertyChanged(subObject, propertyName);
            }
        }
Пример #2
0
 public ChildPropertyChangedEventArgs(StyleObject subObject, string propertyName)
     : base(propertyName)
 {
     _subObject = subObject;
 }