return;
}
- if (type == DisposeTypes.Explicit)
- {
- StopOverShootingShadowAnimation();
- StopScroll();
+ StopOverShootingShadowAnimation();
+ StopScroll();
- if (mPanGestureDetector != null)
- {
- mPanGestureDetector.Detected -= OnPanGestureDetected;
- mPanGestureDetector.Dispose();
- mPanGestureDetector = null;
- }
+ if (mPanGestureDetector != null)
+ {
+ mPanGestureDetector.Detected -= OnPanGestureDetected;
+ mPanGestureDetector.Dispose();
+ mPanGestureDetector = null;
+ }
+ if (propertyNotification != null)
+ {
+ propertyNotification.Notified -= OnPropertyChanged;
+ Interop.Handle.RemovePropertyNotifications(propertyNotification.SwigCPtr);
propertyNotification.Dispose();
+ propertyNotification = null;
+ }
+
+ if (type == DisposeTypes.Explicit)
+ {
+
}
base.Dispose(type);
}