Споделяне чрез

Xamarin.Forms App Lifecycle Tutorial

Before attempting this tutorial, you should have successfully completed the:

In this tutorial, you learn how to:

  • Respond to an application starting, sleeping, or resuming.
  • Persist data across lifecycle state changes.

You will use Visual Studio 2019, or Visual Studio for Mac, to create a simple application that demonstrates how to persist data across lifecycle state changes. The following screenshots show the final application:

Screenshot of an Entry whose Text property is persisted across lifecycle state changes, on iOS and Android