In ScrollableBase.Dispose(), propertyNotification is disposed as well.
To dispose propertyNotification, RemovePropertyNotifications was called
inappropriately and it caused crash.
To resolve the above, RemovePropertyNotification is called by
ContentContainer with propertyNotification like AddPropertyNotification
is called by ContentContainer with propertyNotification.
if (propertyNotification != null)
{
+ ContentContainer?.RemovePropertyNotification(propertyNotification);
propertyNotification.Notified -= OnPropertyChanged;
- Interop.Handle.RemovePropertyNotifications(propertyNotification.SwigCPtr);
propertyNotification.Dispose();
propertyNotification = null;
}