summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WP8/FormsApplicationPage.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.WP8/FormsApplicationPage.cs')
-rw-r--r--Xamarin.Forms.Platform.WP8/FormsApplicationPage.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Xamarin.Forms.Platform.WP8/FormsApplicationPage.cs b/Xamarin.Forms.Platform.WP8/FormsApplicationPage.cs
index ac6decb6..3fb3ddc0 100644
--- a/Xamarin.Forms.Platform.WP8/FormsApplicationPage.cs
+++ b/Xamarin.Forms.Platform.WP8/FormsApplicationPage.cs
@@ -47,18 +47,18 @@ namespace Xamarin.Forms.Platform.WinPhone
}
// when app gets tombstoned, user press back past first page
- void OnClosing(object sender, ClosingEventArgs e)
+ async void OnClosing(object sender, ClosingEventArgs e)
{
// populate isolated storage.
//SerializePropertyStore ();
- _application.SendSleepAsync().Wait();
+ await _application.SendSleepAsync();
}
- void OnDeactivated(object sender, DeactivatedEventArgs e)
+ async void OnDeactivated(object sender, DeactivatedEventArgs e)
{
// populate state dictionaries, properties
//SerializePropertyStore ();
- _application.SendSleepAsync().Wait();
+ await _application.SendSleepAsync();
}
void OnLaunching(object sender, LaunchingEventArgs e)