diff options
author | Jason Smith <jason.smith@xamarin.com> | 2017-01-31 10:15:43 -0800 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2017-01-31 10:27:41 -0800 |
commit | 5775743a297272cf58902f036f56c08dba07b517 (patch) | |
tree | 76d527b5cbd5dc5d34fa8e2b15eb2ef932a3c6a0 | |
parent | 2a019ed256cd3432c6840953d5e4624ebb2383f3 (diff) | |
download | xamarin-forms-5775743a297272cf58902f036f56c08dba07b517.tar.gz xamarin-forms-5775743a297272cf58902f036f56c08dba07b517.tar.bz2 xamarin-forms-5775743a297272cf58902f036f56c08dba07b517.zip |
Fix crash in UWP design moderelease-2.3.3-sr2
-rw-r--r-- | Xamarin.Forms.Platform.WinRT/WindowsBasePage.cs | 7 |
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; } |