PropagateNotificationsAttribute
public class PropagateNotificationsAttribute : DictionaryBehaviorAttribute, IDictionaryInitializer, IDictionaryBehavior
Suppress property change notifications.
using System;
namespace Castle.Components.DictionaryAdapter
{
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Interface, AllowMultiple = false)]
public class PropagateNotificationsAttribute : DictionaryBehaviorAttribute, IDictionaryInitializer, IDictionaryBehavior
{
public bool PropagateNotifications { get; set; }
public PropagateNotificationsAttribute(bool propagateNotifications)
{
PropagateNotifications = propagateNotifications;
}
public void Initialize(IDictionaryAdapter dictionaryAdapter, object[] behaviors)
{
dictionaryAdapter.PropagateChildNotifications = PropagateNotifications;
}
}
}