3 using System.Reflection;
6 namespace Tizen.NUI.Binding.Internals
8 internal static class ResourceLoader
10 static Func<AssemblyName, string, string> resourceProvider = (asmName, path) =>
12 if (typeof(Theme).Assembly.GetName().FullName != asmName.FullName)
14 string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
15 path = resource + path;
18 string ret = File.ReadAllText(path);
22 //takes a resource path, returns string content
23 public static Func<AssemblyName, string, string> ResourceProvider
25 get => resourceProvider;
28 DesignMode.IsDesignModeEnabled = true;
29 resourceProvider = value;
33 internal static Action<Exception> ExceptionHandler { get; set; }