From da5c5a3da5f1828337bbb1a2f810220dc28e73e8 Mon Sep 17 00:00:00 2001 From: Pawel Andruszkiewicz Date: Tue, 28 Mar 2017 11:23:20 +0200 Subject: Add support for resources with multiple DPI Change-Id: I637979182a5df75eb708eda85ffcd3ca7af05c63 Signed-off-by: Pawel Andruszkiewicz --- Xamarin.Forms.Platform.Tizen/ResourcePath.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Xamarin.Forms.Platform.Tizen/ResourcePath.cs b/Xamarin.Forms.Platform.Tizen/ResourcePath.cs index b3678727..0fde30f7 100755 --- a/Xamarin.Forms.Platform.Tizen/ResourcePath.cs +++ b/Xamarin.Forms.Platform.Tizen/ResourcePath.cs @@ -1,3 +1,4 @@ +using System; using System.IO; using AppFW = Tizen.Applications; @@ -13,6 +14,16 @@ namespace Xamarin.Forms.Platform.Tizen return res; } + foreach (AppFW.ResourceManager.Category category in Enum.GetValues(typeof(AppFW.ResourceManager.Category))) + { + var path = AppFW.ResourceManager.TryGetPath(category, res); + + if (path != null) + { + return path; + } + } + AppFW.Application app = AppFW.Application.Current; if (app != null) { -- cgit v1.2.3