/// <summary> /// Register for changes all dependency properties changes notifications for the specified instance. /// </summary> /// <param name="instance">The instance for which to observe properties changes</param> /// <param name="handler">The callback</param> /// <returns>A disposable that will unregister the callback when disposed.</returns> internal static IDisposable RegisterInheritedPropertyChangedCallback(this object instance, ExplicitPropertyChangedCallback handler) { return(GetStore(instance).RegisterInheritedPropertyChangedCallback(handler)); }
/// <summary> /// Register for changes all dependency properties changes notifications for the specified instance. /// </summary> /// <param name="instance">The instance for which to observe properties changes</param> /// <param name="callback">The callback</param> /// <returns>A disposable that will unregister the callback when disposed.</returns> public static IDisposable RegisterDisposablePropertyChangedCallback(this object instance, ExplicitPropertyChangedCallback handler) { return(GetStore(instance).RegisterPropertyChangedCallback(handler)); }