xamarin/Xamarin.Forms
[Bug] Disappearing event behavior during backgrounding not consistent between the platforms.
Offen
#7.733 geöffnet am 29.09.2019
a/lifecycleeventshelp wantedp/Androidt/bug :bug:up-for-grabs
Repository-Metriken
- Stars
- (5.644 Sterne)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
Description
I tried three methods to handle page Disapearing.
In the code
this.Disappearing += MainPage_Disappearing;
Overriding
protected override void OnDisappearing()
{
Debug.WriteLine("OnDisappearing()");
base.OnDisappearing();
}
And the event handler from XAML
private void ContentPage_Disappearing(object sender, EventArgs e)
{
Debug.WriteLine("ContentPage_Disappearing()");
}
Neither of the three handler is called on UWP and WPF. They were called all three on Android.
Steps to Reproduce
Basicaly generate a new XF solution and implement the Disappearing handlers.
The test solution is attached.