diff options
author | Stephane Delcroix <stephane@delcroix.org> | 2017-03-16 20:09:22 +0100 |
---|---|---|
committer | Samantha Houts <samantha@teamredwall.com> | 2017-03-16 12:09:22 -0700 |
commit | 467c1befa1379c2644a3607d87db9a6178575306 (patch) | |
tree | dd5153c7d38ca310177f56a24587ad69d56f0498 /Xamarin.Forms.Core | |
parent | eb8b4d19450e3264fdd20e964f48facca6521070 (diff) | |
download | xamarin-forms-467c1befa1379c2644a3607d87db9a6178575306.tar.gz xamarin-forms-467c1befa1379c2644a3607d87db9a6178575306.tar.bz2 xamarin-forms-467c1befa1379c2644a3607d87db9a6178575306.zip |
Resource loading (#815)
* Resource Loader
* Replace XamlLoader API by ResourceLoader for the Previewer
* instruct generated IL to use the resourceLoader
* [docs] update docs
* oops
* [docs] fix docs
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r-- | Xamarin.Forms.Core/Internals/ResourceLoader.cs | 9 | ||||
-rw-r--r-- | Xamarin.Forms.Core/Xamarin.Forms.Core.csproj | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core/Internals/ResourceLoader.cs b/Xamarin.Forms.Core/Internals/ResourceLoader.cs new file mode 100644 index 00000000..e7b1be1d --- /dev/null +++ b/Xamarin.Forms.Core/Internals/ResourceLoader.cs @@ -0,0 +1,9 @@ +using System; +namespace Xamarin.Forms.Internals +{ + public static class ResourceLoader + { + public static Func<string, string> ResourceProvider { get; internal set; } + internal static Action<Exception> ExceptionHandler { get; set; } + } +}
\ No newline at end of file diff --git a/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj b/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj index 5e001cdc..a052352e 100644 --- a/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj +++ b/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj @@ -458,6 +458,7 @@ <Compile Include="PlatformConfiguration\AndroidSpecific\ListView.cs" /> <Compile Include="ITextElement.cs" /> <Compile Include="TextElement.cs" /> + <Compile Include="Internals\ResourceLoader.cs" /> </ItemGroup> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" /> <ItemGroup> @@ -473,4 +474,4 @@ </PropertyGroup> <ItemGroup /> <ItemGroup /> -</Project>
\ No newline at end of file +</Project> |