I know that you should remove event handlers OnPause
if you are on Android, but should you remove them OnDisappering
in a xamarin forms app?
private EventHandler<SelectedItemChangedEventArgs> _selectionHandler;
public Sessionspage ()
{
InitializeComponent ();
_selectionHandler += async (sender, e) => { await OnSelection(sender, e); };
}
protected override void OnAppearing ()
{
lstSessions.ItemSelected += _selectionHandler;
base.OnAppearing ();
}
protected override void OnDisappearing ()
{
lstSessions.ItemSelected -= _selectionHandler;
base.OnDisappearing ();
}