diff options
-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; } |