I am trying to release some resource when the custom view (subclass of ContentView) is closed, for example unregister the event from a singleton.
I don't find an event for this. And I don't see the View has the Dispose method for overriding.
What's the best practice for this?