diff options
author | E.Z. Hart <hartez@users.noreply.github.com> | 2017-02-17 03:43:26 -0700 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2017-02-17 10:43:26 +0000 |
commit | caa8882ff2007d93d08e2c1de307117f5c706730 (patch) | |
tree | 9ce7ed5606ca4e8c32133783997dcbf95d93c2b7 /Xamarin.Forms.Platform.WinRT | |
parent | de3fdf57c7ee0af98e5d958a1a62595636b885f0 (diff) | |
download | xamarin-forms-caa8882ff2007d93d08e2c1de307117f5c706730.tar.gz xamarin-forms-caa8882ff2007d93d08e2c1de307117f5c706730.tar.bz2 xamarin-forms-caa8882ff2007d93d08e2c1de307117f5c706730.zip |
Split Windows RuntimePlatform into UWP and WinRT (#748)
* Split RuntimePlatform Windows into UWP and WinRT
* Update docs
* Backward compatible targetPlatform=Windows for native XAML views on WinRT/UWP
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT')
-rw-r--r-- | Xamarin.Forms.Platform.WinRT/WindowsBasePlatformServices.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/WindowsBasePlatformServices.cs b/Xamarin.Forms.Platform.WinRT/WindowsBasePlatformServices.cs index 3b5999f6..ced37977 100644 --- a/Xamarin.Forms.Platform.WinRT/WindowsBasePlatformServices.cs +++ b/Xamarin.Forms.Platform.WinRT/WindowsBasePlatformServices.cs @@ -116,7 +116,11 @@ namespace Xamarin.Forms.Platform.WinRT public bool IsInvokeRequired => !CoreApplication.MainView.CoreWindow.Dispatcher.HasThreadAccess; - public string RuntimePlatform => Device.Windows; +#if WINDOWS_UWP + public string RuntimePlatform => Device.UWP; +#else + public string RuntimePlatform => Device.WinRT; +#endif public void OpenUriAction(Uri uri) { |