using System.IO; using AppFW = Tizen.Applications; namespace Xamarin.Forms.Platform.Tizen { public static class ResourcePath { public static string GetPath(string res) { if (Path.IsPathRooted(res)) { return res; } AppFW.Application app = AppFW.Application.Current; if (app != null) { string resPath = app.DirectoryInfo.Resource + res; if (File.Exists(resPath)) { return resPath; } } return res; } } }