diff options
author | Kangho Hur <kangho.hur@samsung.com> | 2017-06-19 14:14:53 +0900 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-10-23 13:34:36 +0900 |
commit | 82e7a27eb4a352f50c0b62ab16c9b4729f94633b (patch) | |
tree | f9e7d9c225b24cd09f99b78fc941ff8bc3bd2cb0 /Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs | |
parent | c7037cc9e42caa73dc2ea4b1347ce5a7a5e5e93d (diff) | |
download | xamarin-forms-82e7a27eb4a352f50c0b62ab16c9b4729f94633b.tar.gz xamarin-forms-82e7a27eb4a352f50c0b62ab16c9b4729f94633b.tar.bz2 xamarin-forms-82e7a27eb4a352f50c0b62ab16c9b4729f94633b.zip |
Apply TizenSpecifics only if available
- Nothing to happen if Xamarin.Forms.dll doesn't have Xamarin.Forms.PlatformConfiguration.TizenSpecific.
Change-Id: I4586178a0eb97610c88bfb272e26e3e0a43b5169
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs')
-rw-r--r-- | Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs b/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs index 3be1c95a..449b0938 100644 --- a/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs +++ b/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs @@ -184,6 +184,8 @@ namespace Xamarin.Forms.Platform.Tizen List<Assembly> _assemblies; + public static bool IsTizenSpecificAvailable { get; private set; } + static AppDomain() { CurrentDomain = new AppDomain(); @@ -212,6 +214,13 @@ namespace Xamarin.Forms.Platform.Tizen { Assembly refAsm = Assembly.Load(refName); RegisterAssemblyRecursively(refAsm); + if (refName.Name == "Xamarin.Forms.Core") + { + if (refAsm.GetType("Xamarin.Forms.PlatformConfiguration.TizenSpecific.VisualElement") != null) + { + IsTizenSpecificAvailable = true; + } + } } catch { |