Update ElementHandlerRegistry.cs
This commit is contained in:
Родитель
6c69b03808
Коммит
19189a7fa0
|
@ -44,13 +44,6 @@ namespace Microsoft.MobileBlazorBindings.Core
|
|||
ElementHandlers.Add(key, new ElementHandlerFactory((renderer, parent, component) => factory(renderer, parent, component)));
|
||||
}
|
||||
|
||||
public static void RegisterPropertyContentHandler<TComponent>(string propertyName,
|
||||
Func<NativeComponentRenderer, IElementHandler> factory) where TComponent : NativeControlComponentBase
|
||||
{
|
||||
var key = $"p-{typeof(TComponent).FullName}.{propertyName}";
|
||||
ElementHandlers.Add(key, new ElementHandlerFactory((renderer, _) => factory(renderer)));
|
||||
}
|
||||
|
||||
public static void RegisterElementHandler<TComponent, TControlHandler>() where TComponent : NativeControlComponentBase where TControlHandler : class, IElementHandler, new()
|
||||
{
|
||||
RegisterElementHandler<TComponent>((_, __) => new TControlHandler());
|
||||
|
|
Загрузка…
Ссылка в новой задаче