| File: Internals\ResourceLoader.cs | Web Access |
| Project: src\src\Controls\src\Core\Controls.Core.csproj (Microsoft.Maui.Controls) |
#nullable disable using System; using System.ComponentModel; using System.Reflection; namespace Microsoft.Maui.Controls.Internals { /// <include file="../../../docs/Microsoft.Maui.Controls.Internals/ResourceLoader.xml" path="Type[@FullName='Microsoft.Maui.Controls.Internals.ResourceLoader']/Docs/*" /> [EditorBrowsable(EditorBrowsableState.Never)] public static class ResourceLoader { static Func<ResourceLoadingQuery, ResourceLoadingResponse> _resourceProvider2; /// <include file="../../../docs/Microsoft.Maui.Controls.Internals/ResourceLoader.xml" path="//Member[@MemberName='ResourceProvider2']/Docs/*" /> public static Func<ResourceLoadingQuery, ResourceLoadingResponse> ResourceProvider2 { get => _resourceProvider2; internal set { DesignMode.IsDesignModeEnabled = value != null; _resourceProvider2 = value; } } public class ResourceLoadingQuery { public AssemblyName AssemblyName { get; set; } public string ResourcePath { get; set; } public object Instance { get; set; } } public class ResourceLoadingResponse { public string ResourceContent { get; set; } public bool UseDesignProperties { get; set; } } internal static Action<(Exception exception, string filepath)> ExceptionHandler2 { get; set; } } }