summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Smith <jason.smith@xamarin.com>2017-01-31 10:15:43 -0800
committerJason Smith <jason.smith@xamarin.com>2017-01-31 10:27:41 -0800
commit5775743a297272cf58902f036f56c08dba07b517 (patch)
tree76d527b5cbd5dc5d34fa8e2b15eb2ef932a3c6a0
parent2a019ed256cd3432c6840953d5e4624ebb2383f3 (diff)
downloadxamarin-forms-release-2.3.3-sr2.tar.gz
xamarin-forms-release-2.3.3-sr2.tar.bz2
xamarin-forms-release-2.3.3-sr2.zip
Fix crash in UWP design moderelease-2.3.3-sr2
-rw-r--r--Xamarin.Forms.Platform.WinRT/WindowsBasePage.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/WindowsBasePage.cs b/Xamarin.Forms.Platform.WinRT/WindowsBasePage.cs
index 31973212..e1700a85 100644
--- a/Xamarin.Forms.Platform.WinRT/WindowsBasePage.cs
+++ b/Xamarin.Forms.Platform.WinRT/WindowsBasePage.cs
@@ -14,8 +14,11 @@ namespace Xamarin.Forms.Platform.WinRT
{
public WindowsBasePage()
{
- Windows.UI.Xaml.Application.Current.Suspending += OnApplicationSuspending;
- Windows.UI.Xaml.Application.Current.Resuming += OnApplicationResuming;
+ if (!DesignMode.DesignModeEnabled)
+ {
+ Windows.UI.Xaml.Application.Current.Suspending += OnApplicationSuspending;
+ Windows.UI.Xaml.Application.Current.Resuming += OnApplicationResuming;
+ }
}
protected Platform Platform { get; private set; }