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

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 77050

Trending Articles