mirror of
https://gitee.com/csharpui/CPF.git
synced 2025-04-05 17:37:51 +08:00
32 lines
1.3 KiB
C#
32 lines
1.3 KiB
C#
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace CPF.BlazorBindings
|
|
{
|
|
public static class ElementHandlerRegistry
|
|
{
|
|
//internal static Dictionary<string, ElementHandlerFactory> ElementHandlers { get; }
|
|
// = new Dictionary<string, ElementHandlerFactory>();
|
|
|
|
//public static void RegisterElementHandler<TComponent>(
|
|
// Func<NativeComponentRenderer, IElementHandler, IElementHandler> factory) where TComponent : NativeControlComponentBase
|
|
//{
|
|
// ElementHandlers.Add(typeof(TComponent).FullName, new ElementHandlerFactory(factory));
|
|
//}
|
|
|
|
//public static void RegisterElementHandler<TComponent>(
|
|
// Func<NativeComponentRenderer, IElementHandler> factory) where TComponent : NativeControlComponentBase
|
|
//{
|
|
// ElementHandlers.Add(typeof(TComponent).FullName, new ElementHandlerFactory((renderer, _) => factory(renderer)));
|
|
//}
|
|
|
|
//public static void RegisterElementHandler<TComponent, TControlHandler>() where TComponent : NativeControlComponentBase where TControlHandler : class, IElementHandler, new()
|
|
//{
|
|
// RegisterElementHandler<TComponent>((_, __) => new TControlHandler());
|
|
//}
|
|
}
|
|
}
|