This repository has been archived by the owner on May 1, 2024. It is now read-only.
[Bug] Dispose method not called when adding control inside the NavigationPage.TitleView #9939
Labels
a/lifecycleevents
a/titleview
in-progress
This issue has an associated pull request that may resolve it!
p/iOS 🍎
p/UWP
s/unverified
New report that has yet to be verified
t/bug 🐛
Milestone
Description
I have a custom control that unmanaged resources(unsubscribe the events, null the reference) are cleared by the overring Dispose() method of each platform renderer. Control objects are cleared from memory when doing page navigation or removed it from parents (because unmanaged resources are cleared by calling the Dispose method on each platform renderer). But when adding control in NavigationPage.TitleView and do the page navigation it won't clear from memory, because of Dispose method doesn't fire, hence unmanaged resource holds the control reference.
Steps to Reproduce
[Note: just created sample for reproduce issue in UWP, this is not actually scenarios]
Expected Behavior
Dispose method is should be called so that unmanaged control resources should be cleared.
Actual Behavior
Dispose method is not to be called.
Basic Information
Reproduction Link
https://github.com/sheiksyedm/TitleViewDemo
The text was updated successfully, but these errors were encountered: