summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WP8/FormsApplicationPage.cs
diff options
context:
space:
mode:
authorDaniel Hindrikes <daniel@hindrikes.se>2016-05-23 17:49:15 (GMT)
committerJason Smith <jason.smith@xamarin.com>2016-05-23 17:49:15 (GMT)
commit4cbe7e61e51198455bb18266ebbcb58ff23916c7 (patch)
tree29b5d092f0d6e6291f41277779b607009234f270 /Xamarin.Forms.Platform.WP8/FormsApplicationPage.cs
parent594d0e8d84a55788f82847a514c62b622273a783 (diff)
downloadxamarin-forms-4cbe7e61e51198455bb18266ebbcb58ff23916c7.zip
xamarin-forms-4cbe7e61e51198455bb18266ebbcb58ff23916c7.tar.gz
xamarin-forms-4cbe7e61e51198455bb18266ebbcb58ff23916c7.tar.bz2
ixed bug with app resume for windows phone silverlight. Bug 41076 in bugzilla (#184)
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 ac6decb..3fb3ddc 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)