Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

How to remove an event handler in custom renderer?

$
0
0

Hi all,

In my custom renderer I attach a PropertyChanged Handler to e.NewElement. How can I remove this handler, when the Element/View is destroyed?

Unfortunately, OnElementChanged is not called, when the View is removed from it's parent. Are there any other "hooks" to use?

Thank you!


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>