This commit is contained in:
GG Z
2025-05-05 17:03:49 +08:00
parent 5b6d67b571
commit 74532b77be
9 changed files with 0 additions and 345 deletions

View File

@@ -1,27 +0,0 @@
namespace WPFluent.Controls;
/// <summary>
/// Used to initialize the library controls with static values.
/// </summary>
public static class ControlsServices
{
#if NET48_OR_GREATER || NETCOREAPP3_0_OR_GREATER
internal static IServiceProvider? ControlsServiceProvider { get; private set; }
/// <summary>
/// Accepts a ServiceProvider for configuring dependency injection.
/// </summary>
public static void Initialize(IServiceProvider? serviceProvider)
{
if (serviceProvider == null)
{
throw new ArgumentNullException(nameof(serviceProvider));
}
ControlsServiceProvider = serviceProvider;
}
#endif
}