Use OnAppearing or OnParentSet

JohnHardmanJohnHardman GBUniversity mod
edited August 2016 in Xamarin.Forms

I often have symmetrical code in OnAppearing and OnDisappearing, for example wiring up event handlers in OnAppearing and unwiring them in OnDisappearing. Whilst looking through sample code from various lectures, I noticed some code using OnParentSet and OnDisappearing, or just OnParentSet, rather than OnAppearing and OnDisappearing. Are there any particular benefits to using OnParentSet instead of OnAppearing?

Best Answer


Sign In or Register to comment.