[NUI]Add xaml support for nui and nui xaml test sample (#230)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / XamlBinding / Internals / ResourceLoader.cs
1 using System;
2 using System.Reflection;
3 using Tizen.NUI.Xaml;
4
5 namespace Tizen.NUI.Internals
6 {
7         internal static class ResourceLoader
8         {
9                 static Func<AssemblyName, string, string> resourceProvider;
10
11                 //takes a resource path, returns string content
12                 public static Func<AssemblyName, string, string> ResourceProvider {
13                         get => resourceProvider;
14                         internal set {
15                                 DesignMode.IsDesignModeEnabled = true;
16                                 resourceProvider = value;
17                         }
18                 }
19
20                 internal static Action<Exception> ExceptionHandler { get; set; }
21         }
22 }